-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug] ImportError: cannot import name 'sha1sum' from 'cyclonedx.model' #5841
Comments
The delta seems to come from cyclonedx-python-lib-5.2.0 that does work, whereas with cyclonedx-python-lib-6.0.0 checkov crashes. The dependency probably needs to be upgraded :) |
As @nvuillam said above, python3 -m pip install --user cyclonedx-python-lib==5.2.0 # Ubuntu 22.04 |
@microamp i did the same on MegaLinter and i confirm it works with |
Workaround for pre-commit: repos:
- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.1.29
hooks:
- id: checkov
additional_dependencies:
- "cyclonedx-python-lib==5.2.0" |
Breaking change here CycloneDX/cyclonedx-python-lib#506 |
Hey everyone, we apologize for the inconvenience. We have set the specific version of Please let us know if there are any other issues 🙏 |
Thanks, helped fixed mine too :) |
I confirm it's now ok in MegaLinter beta version, without any workaround necessary , thanks for the quick patch :) |
Describe the issue
Crash
ImportError: cannot import name 'sha1sum' from 'cyclonedx.model'
undepending how checkov is called :/Examples
Exception Trace
Please share the trace for the exception and all relevant output by checkov.
To maximize the understanding, please run checkov with LOG_LEVEL set to debug
as follows:
Desktop (please complete the following information):
Additional context
You can see the crash in this GitHub Actions job -> https://github.com/oxsecurity/megalinter/actions/runs/7160719035/job/19495393865?pr=3205
Dockerfile is here -> https://github.com/oxsecurity/megalinter/blob/b46d0166a4033bcaa183cb86afcd1e856e233381/linters/repository_checkov/Dockerfile (we had the same result without specifying the checkov version to install)
The text was updated successfully, but these errors were encountered: