Build failed on OSX 10.6 & Python 3.1.1

Bug #1189479 reported by Lorenzo Petrone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python-Crypto
New
Low
Unassigned

Bug Description

I compiled PyCrypto, and I got tons warnings like this one:

In file included from /usr/include/architecture/i386/math.h:626,
                 from /usr/include/math.h:28,
                 from /usr/local/include/python3.1/pyport.h:282,
                 from /usr/local/include/python3.1/Python.h:50,
                 from src/pycrypto_common.h:27,
                 from src/_counter.c:25:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.

While compilation didn't stop and install worked, trying the test gave me this error:

looris@Palace-of-the-Nine-Moons:~/ext-Sviluppo/libs/pycrypto $ py setup.py test
running test
running build
running build_py
running build_ext
running build_configure
Traceback (most recent call last):
  File "setup.py", line 501, in <module>
    core.setup(**kw)
  File "/usr/local/lib/python3.1/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/local/lib/python3.1/distutils/dist.py", line 919, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python3.1/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "setup.py", line 373, in run
    SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, config=self.config)
  File "build/lib.macosx-10.3-i386-3.1/Crypto/SelfTest/__init__.py", line 60, in run
    tests = get_tests(config=config)
  File "build/lib.macosx-10.3-i386-3.1/Crypto/SelfTest/__init__.py", line 81, in get_tests
    from Crypto.SelfTest import Cipher; tests += Cipher.get_tests(config=config)
  File "build/lib.macosx-10.3-i386-3.1/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.macosx-10.3-i386-3.1/Crypto/SelfTest/Cipher/test_AES.py", line 1427, in get_tests
    from Crypto.Cipher import AES
  File "build/lib.macosx-10.3-i386-3.1/Crypto/Cipher/AES.py", line 53, in <module>
    from Crypto.Cipher import _AES
ImportError: dlopen(build/lib.macosx-10.3-i386-3.1/Crypto/Cipher/_AES.so, 2): no suitable image found. Did find:
 build/lib.macosx-10.3-i386-3.1/Crypto/Cipher/_AES.so: mach-o, but wrong architecture

Running Python 3.1.1

I've noticed this bug but I'm not sure if it's related or not https://bugs.launchpad.net/pycrypto/+bug/799985

Revision history for this message
Darsey Litzenberger (dlitz) wrote :

Patches welcome, but really you should upgrade to at least Python 3.3. Python 3.0, 3.1, and 3.2 are pretty broken.

summary: - Build failed on OSX 10.6
+ Build failed on OSX 10.6 & Python 3.1.1
Changed in pycrypto:
importance: Undecided → Low
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.