Open renanalan opened 4 years ago
the same issue for me
Traceback (most recent call last): File "/usr/local/bin/lizard", line 8, in <module> sys.exit(main()) File "/Library/Python/2.7/site-packages/lizard.py", line 1042, in main warning_count = printer(result, options, schema, AllResult) File "/Library/Python/2.7/site-packages/lizard_ext/__init__.py", line 12, in print_xml print(xml_output(total_factory(list(results)), options.verbose)) UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b8' in position 198826: ordinal not in range(128)
the similar issue for me in python2, the reason is that there are Chinese comments in the code. But after I re-installed with python3, it was fixed
When running lizard without parameters, everything works fine. When using lizard -X > output.xml option, it says: Traceback (most recent call last): File "/usr/local/bin/lizard", line 9, in
load_entry_point('lizard==1.17.3', 'console_scripts', 'lizard')()
File "build/bdist.macosx-10.14-intel/egg/lizard.py", line 1035, in main
File "build/bdist.macosx-10.14-intel/egg/lizard_ext/init.py", line 12, in print_xml
UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b8' in position 836206: ordinal not in range(128)