import scipy.integrate fails on pypy 5.3.0 on MacOS X

Issue #2321 resolved
Jared Hoag created an issue

On a fresh installation of pypy 5.3 with numpy-1.2.12.0.dev0 and scipy 0.18.0.dev0, the following code:


import scipy.integrate

print "Hello, world!"

produces this error:


Traceback (most recent call last): File "integrate.py", line 1, in <module> import scipy.integrate File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/integrate/init.py", line 55, in <module> from .quadrature import File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/integrate/quadrature.py", line 10, in <module> from scipy.special.orthogonal import p_roots File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/init.py", line 636, in <module> from ._ufuncs import File "scipy/special/_ufuncs.pyx", line 1, in init scipy.special._ufuncs (scipy/special/_ufuncs.c:36279) ImportError: unable to load extension module '/opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/_ufuncs_cxx.pypy-41.so': dlopen(/opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/_ufuncs_cxx.pypy-41.so, 6): Symbol not found: __Z12PyMem_Mallocm Referenced from: /opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/_ufuncs_cxx.pypy-41.so Expected in: dynamic lookup


Comments (3)

  1. Naoki INADA

    pymem.h doesn't have C++ mangling guard.

    #include <stdio.h>
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    ...
    
    
    #ifdef __cplusplus
    }
    #endif
    
  2. Log in to comment