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
ImportError: No module named Crypto #1460
Comments
Paramiko 2.0 was recently released (and I think depends on Looks like this was changed in c7d3034 |
Can confirm that bumping to |
@jamesob was this triggered by reinstalling Fabric in a new environment? As @gtback noted, paramiko changed recently and we put out earlier Fab releases that pin to paramiko<2 to avoid this kind of thing. You weren't on one of those which is likely why things broke. That said, I didn't realize we were directly importing Crypto anywhere; just looked and yea, we had to do some dumb tweak to deal with a PyCrypto + parallelization quirk. That'll have to change if we ever undo the Paramiko version pin (which I would like to do sometime probably, once we're sure paramiko 2 is stable). So, thanks for surfacing this :) |
Fix "No module named Crypto" from fabric/fabric#1460
Hi there,
I have a private project that depends on fabric. Specifically, we pin
fabric==1.10.2
.Today, builds of this project have started mysteriously failing with the following stacktrace:
Fabric has been pinned to the same version for weeks. Manually installing
pycrypto
alongside fabric resolves this issue.Despite explicitly importing
Crypto.Random
, fabric's only dependency is paramiko, and pycrypto isn't referenced anywhere aside from paramiko docs.IMO if you're importing
pycrypto
symbols explicitly within fabric,pycrypto
should be cited as a dependency withinsetup.py
.Thanks!
The text was updated successfully, but these errors were encountered: