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

The following plugin(s) are referenced and cannot be loaded/imported: scancodeio-worker-1 | cannot import name 'Algorithm' from 'spdx.checksum' (/usr/local/lib/python3.9/site-packages/spdx/checksum.py) #582

Closed
Adarsh01 opened this issue Jan 9, 2023 · 5 comments

Comments

@Adarsh01
Copy link

Adarsh01 commented Jan 9, 2023

Getting this error after running "docker compose up" command.

"scancodeio-worker-1 | ERROR: UNABLE TO IMPORT SCANCODE PLUGINS.
scancodeio-worker-1 | Check your installation configuration (setup.py) or re-install/re-configure ScanCode.
scancodeio-worker-1 | The following plugin(s) are referenced and cannot be loaded/imported:
scancodeio-worker-1 | cannot import name 'Algorithm' from 'spdx.checksum' (/usr/local/lib/python3.9/site-packages/spdx/checksum.py)
"

@Adarsh01 Adarsh01 changed the title scancodeio-worker-1 | ERROR: UNABLE TO IMPORT SCANCODE PLUGINS. scancodeio-worker-1 | Check your installation configuration (setup.py) or re-install/re-configure ScanCode. scancodeio-worker-1 | The following plugin(s) are referenced and cannot be loaded/imported: scancodeio-worker-1 | cannot import name 'Algorithm' from 'spdx.checksum' (/usr/local/lib/python3.9/site-packages/spdx/checksum.py) The following plugin(s) are referenced and cannot be loaded/imported: scancodeio-worker-1 | cannot import name 'Algorithm' from 'spdx.checksum' (/usr/local/lib/python3.9/site-packages/spdx/checksum.py) Jan 9, 2023
@pombredanne
Copy link
Member

@Adarsh01 Thanks for the report. This is because of a bug in ScanCode toolkit at aboutcode-org/scancode-toolkit#3179 that is being fixed soon.

@AyanSinhaMahapatra
Copy link
Member

@pombredanne I think you meant aboutcode-org/scancode-toolkit#3173

@pombredanne
Copy link
Member

Good point! actually I pinned the SPDX library in Scancode Toolkit 31.2.3 so this is not really tracked anywhere. This was with aboutcode-org/scancode-toolkit@b4f497c and aboutcode-org/scancode-toolkit#3171 and aboutcode-org/scancode-toolkit#3177

@AyanSinhaMahapatra
Copy link
Member

@Adarsh01 could you check this is solved on develop so we can close this?

@AyanSinhaMahapatra
Copy link
Member

Closing this, as we've fixed this!

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

3 participants