-
Notifications
You must be signed in to change notification settings - Fork 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
(python) fatal error upgrading cryptography
; calling get_dependency_hash fails
#10631
Comments
I was further debugging this, after having seen it fail pretty regularly (example: https://github.com/pypi/warehouse/actions/runs/11141094843/job/30961268872#step:3:16681 ) The error appears when using the dependabot-core/python/helpers/lib/hasher.py Lines 8 to 23 in a8fd490
Example: get_dependency_hash("cryptography", "", "sha256", "/pypi/zope-interface/json")) produces the same error. (replace I also thing it's related to the recently-merged #7907 - I'm guessing something is malformed the value input to this function - it works fine without it, since it'll default to pypi.org What's confusing is that this error is not happening for all other dependencies, so it's entirely possible that something upstream of this request is parsing something incorrectly, potentially a complex requirements.in / requirements.txt file? |
Is there an existing issue for this?
Package ecosystem
pip
Package manager version
pip-compile
Language version
python 3.11
Manifest location and content before the Dependabot update
/requirements.in
/requirements.txt
dependabot.yml content
Updated dependency
cryptography
What you expected to see, versus what you actually saw
New dependabot PR proposing upgrade of cryptography package. However, dependabot job fails
Native package manager behavior
Manually modifying
requirements.in
and settingcryptography~=43.0.0
, thenpip-compile --generate-hashes --output-file=requirements.txt requirements.in
updates the
requirements.txt
correctly.Images of the diff or a link to the PR, issue, or logs
I have executed the dependabot job in debug mode, which shows the actual error
Smallest manifest that reproduces the issue
requirements.in
requirements.txt
The text was updated successfully, but these errors were encountered: