You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just about to try this tool and it instantly failed:
Traceback (most recent call last):
File "/home/mauch/.local/bin/ros_license_toolkit", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/home/mauch/local_install/src/ros_license_toolkit/bin/ros_license_toolkit", line 42, in <module>
sys.exit(main(args=sys.argv[1:]))
File "/home/mauch/local_install/src/ros_license_toolkit/src/ros_license_toolkit/main.py", line 80, in main
packages = get_packages_in_path(parsed_args.path)
File "/home/mauch/local_install/src/ros_license_toolkit/src/ros_license_toolkit/package.py", line 212, in get_packages_in_path
repo: Optional[Repo] = Repo(os.path.abspath(path))
File "/home/mauch/local_install/src/ros_license_toolkit/src/ros_license_toolkit/repo.py", line 83, in __init__
if is_license_text_file(scan_results):
File "/home/mauch/local_install/src/ros_license_toolkit/src/ros_license_toolkit/common.py", line 24, in is_license_text_file
for _license in scan_results["licenses"]:
KeyError: 'licenses'
A bit debugging revealed that the text that is searched for doesn't exist at all in the scan output. So I tried using an older version of scancode-toolkit (31.2.6) and it suddently worked.
scancode-toolkit v32.0.4 produces another output on a BSD-3-Clause LICENSE file:
For now things work for me with scancode 31.2.6 installed, but since the setup.py doesn't specify a version, this might make other people run into this / will lead to problems in future when newer scancode versions should be supported.
The text was updated successfully, but these errors were encountered:
@ct2034 thanks for the quick response. I am confused that you created #18 and closed it deleting the branch without merging it. Is there a reason for that?
Hi,
I was just about to try this tool and it instantly failed:
A bit debugging revealed that the text that is searched for doesn't exist at all in the scan output. So I tried using an older version of scancode-toolkit (31.2.6) and it suddently worked.
scancode-toolkit v32.0.4 produces another output on a BSD-3-Clause LICENSE file:
For now things work for me with scancode 31.2.6 installed, but since the
setup.py
doesn't specify a version, this might make other people run into this / will lead to problems in future when newer scancode versions should be supported.The text was updated successfully, but these errors were encountered: