Bad pycrypto version cause ImportError: No module named Crypto.Cipher

Bug #889398 reported by Chayapan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Gabriel Hurley

Bug Description

When running the test server I was getting

ImportError: No module named Crypto.Cipher

It appears that this is because of the version of pycrypto I had (2.1.0).

In tools/pip-requires , I added

pycrypto >= 2.2

and re-install.

The dashboard is working OK now.

My OS is Ubuntu 11.04

Chayapan (chayapan)
description: updated
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

I ran into the same issue and the fix is already committed, actually. We pegged pycrypto at 2.3 as the most recent version that was compatible with both pip install and buildout.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-2 → 2012.1
Revision history for this message
kesten broughton (dathomir) wrote :

I'm seeing this now with the latest (dec 10th 2013) trunk devstack with savanna and swift.

pycrypto = 2.6.1

cat /var/log/devstack/screen/screen-g-api.log
stack/status/stack/g-api.failure"nf || echo "g-api failed to start" | tee "/opt/
Traceback (most recent call last):
  File "/usr/bin/glance-api", line 6, in <module>
    from glance.cmd.api import main
  File "/opt/stack/glance/glance/cmd/api.py", line 45, in <module>
    import glance.store
  File "/opt/stack/glance/glance/store/__init__.py", line 30, in <module>
    from glance.store import scrubber
  File "/opt/stack/glance/glance/store/scrubber.py", line 26, in <module>
    from glance.common import crypt
  File "/opt/stack/glance/glance/common/crypt.py", line 25, in <module>
    from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher
g-api failed to start

[root@dev-controller:~] locate pycrypto
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/PKG-INFO
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/SOURCES.txt
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/dependency_links.txt
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/installed-files.txt
/root/savanna-venv/savanna-venv/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/top_level.txt
/usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info
/usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6.egg-info/PKG-INFO
....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.