Description of problem: Display the report to the console will work, but save it to file will result in an python error. Version-Release number of selected component (if applicable): openscap-daemon-0.1.10-1.el7.noarch How reproducible: Every time Steps to Reproduce: 1. oscapd-cli result 1 1 report > /tmp/test.html Actual results: Python error: Traceback (most recent call last): File "/usr/bin/oscapd-cli", line 846, in <module> main() File "/usr/bin/oscapd-cli", line 838, in main cli_result(dbus_iface, args) File "/usr/bin/oscapd-cli", line 466, in cli_result print(report) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 223182: ordinal not in range(128) Expected results: An html file with the report. Additional info: oscapd-cli result 1 1 report Will print the report to the console without errors. oscapd-cli result 1 1 report | more Will also fail with the same error.
As an hot fix: change: import io if sys.version_info < (3,): import gobject else: from gi.repository import GObject as gobject to: import io reload(sys) sys.setdefaultencoding('utf8') if sys.version_info < (3,): import gobject else: from gi.repository import GObject as gobject in /usr/bin/oscapd-cli
This package has changed maintainer in the Fedora. Reassigning to the new maintainer of this component.
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.