[Numpy-discussion] Freezing Numeric Python code problem under Linux

Nor Pirzkal npirzkal at eso.org
Mon Nov 27 09:08:28 EST 2000


	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

$ 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
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??


More information about the NumPy-Discussion mailing list