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

Hazelcast repository - Maven issue #177

Closed 4rokis closed 3 years ago

4rokis commented 3 years ago

https://github.com/jerrinot/hazelcast

[[maven]./hazelcast/pom.xml] Traceback (most recent call last):
  File "/usr/local/bin/license-sh", line 2, in <module>
    from license_sh import __main__
  File "/usr/local/lib/python3.8/site-packages/license_sh/__main__.py", line 28, in <module>
    run_license_sh(arguments)
  File "/usr/local/lib/python3.8/site-packages/license_sh/commands/run_license_sh.py", line 91, 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 35, in run_analyze
    return analyzer(path, dep_tree)
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 240, in analyze_maven
    licenses_analysis = get_maven_analyze_dict(directory)
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 207, in get_maven_analyze_dict
    license_data = get_analyze_maven_data(directory, dirpath)
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 136, in get_analyze_maven_data
    fetch_maven_licenses(parse_licenses_xml(get_licenses_xml(directory)), license_dir)
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 281, in fetch_maven_licenses
    asyncio.run(fetch_concurrent())
  File "/usr/local/lib/python3.8/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 274, in fetch_concurrent
    output, dep_id = await result
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 608, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/usr/local/lib/python3.8/site-packages/license_sh/analyze/maven.py", line 259, in fetch
    return await resp.text(), dep_id
  File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1014, in text
    return self._body.decode(encoding, errors=errors)  # type: ignore
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 11: invalid start byte
4rokis commented 3 years ago

One of the fetched licenses is a PDF, it has understandable troubles of reading it stand-alone tck license agreement - sa-tck-jsr-107-10_22_12.pdf