-
Notifications
You must be signed in to change notification settings - Fork 3k
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
After update to 20.3 can't use pycrypto #9214
Comments
Hello and thank you for your bug report! I'm sorry you're having trouble right now. Thank you for sharing your report with us. Could you try upgrading to pip 20.3.1 and then choosing the old resolver behavior using the flag pip 20.3 has a new dependency resolver and I wonder whether that is related. |
With pip 20.3.1 and legacy-resolver the problem is solved |
Tryed to work through the guide you attached
pip check not see any problems |
This error is correct Yes, there hasn't been a release in 7 years... |
You'll probably want to make sure |
As you can see I have pycryptodome installed also, and this package gives me this With legacy-resolver it's working, I think the issue is there... |
Can you provide a step-to-step reproduction of the issue? You said when reverted to 20.2.4 all working, but I cannot reproduce it with the following Dockerfile: FROM python:3.7-alpine
ARG PIP_VERSION
RUN apk add gcc musl-dev libffi-dev openssl-dev
RUN pip install pip==${PIP_VERSION}
RUN pip install \
cryptography==3.2.1 \
django-searchable-encrypted-fields==0.1.9 \
pycrypto==2.6.1 \
pycryptodome==3.9.9
RUN python -c 'import Crypto.Cipher; print(Crypto.Cipher.AES)' Both
From the information currently available, pip (and the resolver) does not seem to be related to your issue. |
|
pycryptodome seems to do some weird things in its |
We do make a tiny commitment: https://pip.pypa.io/en/stable/reference/pip_install/#installation-order
|
True, but pycryptodome replaces pycrypto, as I understand it, so there's no dependency relationship in this case. I may well be wrong, though, as building via wheels didn't seem to help. I'm pretty sure this isn't a pip issue, though, but rather something in the (extremely complicated) |
The issue is indeed that
20.3.1 installs This issue is already tracked in #4625, so I’ll close this as a duplicate. |
I'm using docker image with python tag: python:3.7-alpine.
This image received an update of pip from 20.2.4 to 20.3.
After geting the new image i see errors in my logs
When reverted to 20.2.4 all working.
Using pycrypto==2.6.1
The text was updated successfully, but these errors were encountered: