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- and scipy 0.18.0.dev0, the following code:

import scipy.integrate

print "Hello, world!"

produces this error:

Traceback (most recent call last): File "", line 1, in <module> import scipy.integrate File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/integrate/", line 55, in <module> from .quadrature import File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/integrate/", line 10, in <module> from scipy.special.orthogonal import p_roots File "/opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/", 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/': dlopen(/opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/, 6): Symbol not found: __Z12PyMem_Mallocm Referenced from: /opt/pypy2-v5.3.0-osx64/site-packages/scipy/special/ Expected in: dynamic lookup

Comments (3)

  1. Naoki INADA

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

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