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

TypeError #109

Closed 4rokis closed 4 years ago

4rokis commented 4 years ago
Traceback (most recent call last):
  File "./license-sh", line 2, in <module>
    from license_sh import __main__
  File "/home/theodore/Workspace/license.sh/license_sh/__main__.py", line 26, in <module>
    run_license_sh(arguments)
  File "/home/theodore/Workspace/license.sh/license_sh/commands/run_license_sh.py", line 79, in run_license_sh
    dep_tree, whitelist, ignored_packages=ignored_packages, get_full_tree=tree
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 253, in get_dependency_tree_with_licenses
    dep_tree, whitelist=whitelist, ignored_packages=ignored_packages
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 191, in annotate_dep_tree
    node.license_normalized = normalize_license_expression(node.license)
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 174, in normalize_license_expression
    f" {operator} ".join(map(normalize_license_expression, license.args))
  File "/home/theodore/Workspace/license.sh/license_sh/helpers.py", line 154, in normalize_license_expression
    if license_text_raw:
  File "/home/theodore/.local/share/virtualenvs/license.sh-7481Vkau/lib/python3.7/site-packages/boolean/boolean.py", line 779, in __bool__
    raise TypeError('Cannot evaluate expression as a Python Boolean.')
TypeError: Cannot evaluate expression as a Python Boolean.