freeze, Numeric and linux not working

Berthold Höllmann hoel at
Wed Aug 14 11:36:41 EDT 2002


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

------ --------------
import Numeric as N

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

after calling 

> python ~/python/freeze/ ; make

the call to

> ./ntest

gives an error message:

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


>nm ntest|grep _Py_NoneStruct
0823449c D _Py_NoneStruct

so "_Py_NoneStruct" is in the executablea and

[ 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        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