Why the preupg is throwing "UnicodeDecodeError 'ascii' codec can't decode byte 0xde in position XX ordinal not in range(XXX)"
Issue
- The
preupgcommand is throwing the following python traceback.
Traceback (most recent call last):
File "/usr/bin/preupg", line 19, in main
return_code = app.run()
File "/usr/lib/python2.6/site-packages/preupg/application.py", line 748, in run
retval = self.scan_system()
File "/usr/lib/python2.6/site-packages/preupg/application.py", line 510, in scan_system
self.prepare_xml_for_html()
File "/usr/lib/python2.6/site-packages/preupg/application.py", line 339, in prepare_xml_for_html
self.report_parser.reload_xml(self.openscap_helper.get_default_xml_result_path())
File "/usr/lib/python2.6/site-packages/preupg/report_parser.py", line 113, in reload_xml
self.target_tree = ElementTree.fromstring(content.replace("\a", ""))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xde in position 486342: ordinal not in range(128)
Environment
- Red Hat Enterprise Linux 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
