[Numpy-discussion] Freezing Numeric Python code problem under Linux
Nor Pirzkal
npirzkal at eso.org
Mon Nov 27 08:08:28 CST 2000
Hi,
i am having troubles freezing some python code with call the Numeric
17.1.1 module.
Here is an example of what happens under Linux Red Hat 6.2 and Python
2.0:
$ cat t.py
import Numeric
a = Numeric.ones([10,10])
b = a * 10
print b
$ python ~/Python-2.0/Tools/freeze/freeze.py -o tt t.py
...
$ cd tt
$ ./t
Traceback (most recent call last):
File "t.py", line 1, in ?
File "/scisoft/python/lib/python2.0/site-packages/Numeric/Numeric.py",
line 79, in ?
import multiarray
ImportError:
/scisoft/python/lib/python2.0/site-packages/Numeric/multiarray.so:
undefined symbol: _Py_NoneStruct
The very same code, under Solaris 2.6 and Python 2.0 works just fine.
Code which does not use the Numeric package freeze just fine under
Linux, so I think that this point to some problem/incompatibility of
Numeric with freeze.py.
Does anybody have a suggestion, or a work-around??
Nor
More information about the Numpy-discussion
mailing list