install failure

Bug #1055256 reported by A
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python-Crypto
Confirmed
Undecided
Unassigned

Bug Description

Hi, I just grabbed the latest pycrypto (2.6). When I run setup.py test I get the following error:

running test
Traceback (most recent call last):
  File "setup.py", line 456, in <module>
    core.setup(**kw)
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "setup.py", line 336, in run
    SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, config=self.config)
  File "build/lib.linux-x86_64-2.6/Crypto/SelfTest/__init__.py", line 60, in run
    tests = get_tests(config=config)
  File "build/lib.linux-x86_64-2.6/Crypto/SelfTest/__init__.py", line 79, in get_tests
    from Crypto.SelfTest import Cipher; tests += Cipher.get_tests(config=config)
  File "build/lib.linux-x86_64-2.6/Crypto/SelfTest/Cipher/__init__.py", line 31, in get_tests
    from Crypto.SelfTest.Cipher import test_AES; tests += test_AES.get_tests(config=config)
  File "build/lib.linux-x86_64-2.6/Crypto/SelfTest/Cipher/test_AES.py", line 1424, in get_tests
    from Crypto.Cipher import AES
  File "build/lib.linux-x86_64-2.6/Crypto/Cipher/AES.py", line 50, in <module>
    from Crypto.Cipher import _AES
ImportError: cannot import name _AES

I'm running python version 2.6
Linux: Amazon Linux AMI release 2012.03

Thanks!

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

The test target is missing a dependency on the build target. As a workaround run python setup.py build first and then everything else.

Changed in pycrypto:
status: New → Confirmed
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.