[pypy-issue] Issue #2406: Recent numpy commit breaks compatibility with pypy (Symbol not found: ___cpu_model) (pypy/pypy)

Paul Pearce issues-reply at bitbucket.org
Tue Sep 27 16:40:21 EDT 2016

New issue 2406: Recent numpy commit breaks compatibility with pypy (Symbol not found: ___cpu_model)

Paul Pearce:


The breakage occured sometime after numpy commit 55ece5839d3e9327de7 (5/19/2016) and before (inclusive) 7ccf0e08917d27bc (today, 9/27/16)

pypy -m pip  install cython git+https://github.com/numpy/numpy.git@7ccf0e08917d27bc
pypy -c "import numpy; print 'hello'"
Traceback (most recent call last):
  File "t.py", line 1, in <module>
    import numpy
  File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/__init__.py", line 142, in <module>
    from . import add_newdocs
  File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/__init__.py", line 32, in <module>
    from . import umath
ImportError: unable to load extension module '/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so': dlopen(/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so, 6): Symbol not found: ___cpu_model
  Referenced from: /usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so
  Expected in: dynamic lookup


pypy -m pip  install cython git+https://github.com/numpy/numpy.git@55ece5839d3e9327de7
pypy -c "import numpy; print 'hello'"

More information about the pypy-issue mailing list