"undefined symbol: _Py_NoneStruct" with freeze and Numeric on Linux

Berthold Höllmann hoel at germanlloyd.org
Thu Aug 29 16:00:44 CEST 2002


I try to freeze a project using NumPy. But using a minimal example:

------ ntest.py --------------
import Numeric as N

print N.array((1.,2,3,4))
------ ntest.py --------------

after calling

> python ~/python/freeze/freeze.py ntest.py ; make

the call to

> ./ntest

gives an error message:

Traceback (most recent call last):
  File "ntest.py", line 28, in ?
    import Numeric as N
  File "/usr/local/gltools/python/Python-2.2.1/linux/lib/python2.2/site-packages/Numeric/Numeric.py", line 91, in ?
    import multiarray
ImportError: /usr/local/gltools/python/Python-2.2.1/linux/lib/python2.2/site-packages/Numeric/multiarray.so: undefined symbol: _Py_NoneStruct


>nm ntest|grep _Py_NoneStruct
0823449c D _Py_NoneStruct

so "_Py_NoneStruct" is in the executable and

>python ntest.py
[ 1.  2.  3.  4.]

So NumePy seems to work. Searching Google I found others having the
same Problem, but no solution. Is there any, and if yes, what is it.


Dipl.-Ing. Berthold Höllmann   __   Address:
hoel at germanlloyd.org        G /  \ L Germanischer Lloyd
phone: +49-40-36149-7374    -+----+- Vorsetzen 32/35    P.O.Box 111606
fax  : +49-40-36149-7320      \__/   D-20459 Hamburg    D-20416 Hamburg

More information about the Python-list mailing list