webscopeio / license.sh

License checker tool - We're in a beta phase, any help is appreciated, especially reporting issues
https://webscopeio.github.io/license.sh
MIT License
40 stars 6 forks source link

Analyze error #163

Closed 4rokis closed 4 years ago

4rokis commented 4 years ago

[2020-08-27T16:07:34Z] [[npm]./package-lock.json] Traceback (most recent call last): File "/usr/local/bin/license-sh", line 2, in from license_sh import main File "/usr/local/lib/python3.8/site-packages/license_sh/main.py", line 28, in run_license_sh(arguments) File "/usr/local/lib/python3.8/site-packages/license_sh/commands/run_license_sh.py", line 86, in run_license_sh analyzed_tree = run_analyze(project_to_check, path, dep_tree) File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/init.py", line 32, in run_analyze return analyzer(path, dep_tree) File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/npm.py", line 39, in analyze_npm analyze_data = get_analyze_npm_data(directory) File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/npm.py", line 26, in get_analyze_npm_data return get_node_analyze_dict(directory) File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/analyze_shared.py", line 104, in get_node_analyze_dict license_text = license_file.read() File "/usr/local/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 522: invalid start byte