[pypy-issue] Issue #2994: multiarray import fails - Symbol not found: _aheapsort_bool on macOS (pypy/pypy)

S. Moon issues-reply at bitbucket.org
Sun Apr 7 03:23:08 EDT 2019

New issue 2994: multiarray import fails - Symbol not found: _aheapsort_bool on macOS

S. Moon:

macOS Version: 10.13.6
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.7.0

(numpy package was installed through pip, and not built from source)

Steps to repro:
1. Install numpy on a fresh pypy3.5 / 3.6 installation (Affects at least version PyPy3.6 v7.1.0-beta and PyPy3.5 v7.0.0, and also the latest 3.6 nightly - pypy-c-jit-96343-de061d87e39c-osx64)
2. `import numpy`


Traceback (most recent call last):
  File "/Users/user/Downloads/pypy3.6-v7.1.0-osx64/site-packages/numpy/core/__init__.py", line 40, in <module>
    from . import multiarray
  File "/Users/user/Downloads/pypy3.6-v7.1.0-osx64/site-packages/numpy/core/multiarray.py", line 12, in <module>
    from . import overrides
  File "/Users/user/Downloads/pypy3.6-v7.1.0-osx64/site-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/user/Downloads/pypy3.6-v7.1.0-osx64/site-packages/numpy/core/_multiarray_umath.pypy3-71-darwin.so, 6): Symbol not found: _aheapsort_bool
  Referenced from: /Users/user/Downloads/pypy3.6-v7.1.0-osx64/site-packages/numpy/core/_multiarray_umath.pypy3-71-darwin.so
  Expected in: dynamic lookup

This does not repro on Linux builds of the same pypy versions.

More information about the pypy-issue mailing list