akrabat opened a new issue #59: scanCode.py fails on python runtime with Python 3 URL: https://github.com/apache/incubator-openwhisk-utilities/issues/59 Using Python 3.7.0 on Mac, I get this error: ``` ./incubator-openwhisk-utilities/scancode/scanCode.py --config incubator-openwhisk-utilities/scancode/ASF-Release.cfg incubator-openwhisk-runtime-python-1.13.0-incubating Reading configuration file [incubator-openwhisk-utilities/scancode/ASF-Release.cfg]... ./incubator-openwhisk-utilities/scancode/scanCode.py:274: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. config.readfp(file) Scanning files starting at [incubator-openwhisk-runtime-python-1.13.0-incubating]... Traceback (most recent call last): File "./incubator-openwhisk-utilities/scancode/scanCode.py", line 555, in <module> errors += run_line_checks(path, chks2) File "./incubator-openwhisk-utilities/scancode/scanCode.py", line 410, in run_line_checks for line in fp: File "/Users/rob/.pyenv/versions/3.7.0/lib/python3.7/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte ``` It works with Python 2.7.15, though..
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
