Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spdx dependency error #69

Open
meetgandhi-dev opened this issue Sep 19, 2024 · 1 comment
Open

spdx dependency error #69

meetgandhi-dev opened this issue Sep 19, 2024 · 1 comment

Comments

@meetgandhi-dev
Copy link

Hi there,

Thank you for your excellent work on this tool! I'm trying to use it on Ubuntu 22.04, but I'm encountering an issue related to the spdx module.

Here are the details about my setup:

$ python --version
Python 3.10.12

I have installed the ROS license toolkit via pip:

$ pip list | grep ros_license_toolkit
ros_license_toolkit                  1.3.0

When I ran the tool for the first time, I received the following error:

$ ros_license_toolkit my_custom_msgs
Traceback (most recent call last):
  File "/home/meet/.local/bin/ros_license_toolkit", line 5, in <module>
    from ros_license_toolkit.main import main
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/main.py", line 27, in <module>
    from ros_license_toolkit.checks import (LicensesInCodeCheck,
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/checks.py", line 25, in <module>
    from ros_license_toolkit.license_tag import (LicenseTag,
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/license_tag.py", line 27, in <module>
    from spdx.config import LICENSE_MAP
ModuleNotFoundError: No module named 'spdx'

To address this, I manually installed the spdx module using pip:

$ pip list | grep spdx
spdx                                 2.5.1
spdx-tools                           0.8.2

However, after installing it, I encountered a different error:

$ ros_license_toolkit ark_msg/
Traceback (most recent call last):
  File "/home/meet/.local/bin/ros_license_toolkit", line 5, in <module>
    from ros_license_toolkit.main import main
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/main.py", line 27, in <module>
    from ros_license_toolkit.checks import (LicensesInCodeCheck,
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/checks.py", line 25, in <module>
    from ros_license_toolkit.license_tag import (LicenseTag,
  File "/home/meet/.local/lib/python3.10/site-packages/ros_license_toolkit/license_tag.py", line 27, in <module>
    from spdx.config import LICENSE_MAP
ModuleNotFoundError: No module named 'spdx.config'

I would appreciate any guidance on how to resolve these issues. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@meetgandhi-dev and others