ImportError: No module named Crypto.Util.randpool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crypto (Ubuntu) |
Won't Fix
|
High
|
Matthias Klose |
Bug Description
$ python
Python 2.5 (release25-maint, Jan 15 2007, 19:40:39)
[GCC 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/
from transport import randpool, SecurityOptions, Transport
File "/var/lib/
from paramiko import util
File "/var/lib/
from paramiko.common import *
File "/var/lib/
from Crypto.
ImportError: No module named Crypto.
This breaks bzr push. The latest Debian version has the same problem, so the sync request will not fix it.
Changed in paramiko: | |
importance: | Undecided → High |
The problem was that python-crypto was only pycentral'ized for 2.4:
$ locate randpool python2. 4/site- packages/ Crypto/ Util/randpool. py python2. 4/site- packages/ Crypto/ Util/randpool. pyc pycentral/ python- crypto/ site-packages/ Crypto/ Util/randpool. py
/usr/lib/
/usr/lib/
/usr/share/
dpkg-reconfigure python-crypto fixed that, now I have 2.5 symlinks as well.
This system was installed as herd-2, i. e. with python2.4 still being the default.