[pypy-issue] [issue1642] Numpy fails to load with pypy-2.2-osx64

Tibor Kiss tracker at bugs.pypy.org
Mon Nov 18 10:14:39 CET 2013

New submission from Tibor Kiss <tibor.kiss at gmail.com>:

Numpy (50bff5807e09721acc4d778ce8ffdef86e2f4c50) fails to load on OS X 10.8.5 with 
pypy-2.2-osx64. Numpy build creates 32 bit binary for lapack_lite even though the 
pypy is built for 64bit. The other shared object (numpy/core/_dummy.pypy-22.so) is 
built correctly.

% file /opt/pypy-2.2-osx64/site-packages/numpy/linalg/lapack_lite.pypy-22.so
/opt/pypy-2.2-osx64/site-packages/numpy/linalg/lapack_lite.pypy-22.so: Mach-O 
bundle i386

% file /opt/pypy-2.2-osx64/site-packages/numpy/core/_dummy.pypy-22.so
/opt/pypy-2.2-osx64/site-packages/numpy/core/_dummy.pypy-22.so: Mach-O 64-bit 
dynamically linked shared library

% /opt/pypy-2.2-osx64/bin/pypy
Python 2.7.3 (f3423a62cd09, Nov 12 2013, 16:08:35)
[PyPy 2.2.0 with GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy is Shirt Origami research''
>>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/pypy-2.2-osx64/site-packages/numpy/__init__.py", line 153, in 
    from . import add_newdocs
  File "/opt/pypy-2.2-osx64/site-packages/numpy/add_newdocs.py", line 13, in 
    from numpy.lib import add_newdoc
  File "/opt/pypy-2.2-osx64/site-packages/numpy/lib/__init__.py", line 18, in 
    from .polynomial import *
  File "/opt/pypy-2.2-osx64/site-packages/numpy/lib/polynomial.py", line 19, in 
    from numpy.linalg import eigvals, lstsq, inv
  File "/opt/pypy-2.2-osx64/site-packages/numpy/linalg/__init__.py", line 50, in 
    from .linalg import *
  File "/opt/pypy-2.2-osx64/site-packages/numpy/linalg/linalg.py", line 29, in 
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: unable to load extension module '/opt/pypy-2.2-osx64/site-
packages/numpy/linalg/lapack_lite.pypy-22.so': dlopen(/opt/pypy-2.2-osx64/site-
packages/numpy/linalg/lapack_lite.pypy-22.so, 6): no suitable image found.  Did 
mach-o, but wrong architecture

messages: 6360
nosy: pypy-issue, tki
priority: bug
release: 2.2
status: unread
title: Numpy fails to load with pypy-2.2-osx64

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list