[Numpy-discussion] a question about freeze on numpy 1.7.0

2013-02-24 Thread Gelin Yan
Hi All When I used numpy 1.7.0 with cx_freeze 4.3.1 on windows, I quickly found out even a simple import numpy may lead to program failed with following exception: AttributeError: 'module' object has no attribute 'sys' After a poking around some codes I noticed /numpy/core/__init__.py has

Re: [Numpy-discussion] Calling scipy blas from cython is extremely slow

2013-02-24 Thread Pauli Virtanen
23.02.2013 20:31, Sergio Callegari kirjoitti: Partially fixed. I was messing the row, column order. For some reason this was working in some case. Now I've fixed it and it *always* works. However, it is still slower than the cblas cblas - 0.69 sec scipy blas - 0.74 sec The possible

Re: [Numpy-discussion] a question about freeze on numpy 1.7.0

2013-02-24 Thread Ondřej Čertík
Hi Gelin, On Sun, Feb 24, 2013 at 12:08 AM, Gelin Yan dynami...@gmail.com wrote: Hi All When I used numpy 1.7.0 with cx_freeze 4.3.1 on windows, I quickly found out even a simple import numpy may lead to program failed with following exception: AttributeError: 'module' object has no

Re: [Numpy-discussion] a question about freeze on numpy 1.7.0

2013-02-24 Thread Benjamin Root
On Sun, Feb 24, 2013 at 8:16 PM, Ondřej Čertík ondrej.cer...@gmail.comwrote: Hi Gelin, On Sun, Feb 24, 2013 at 12:08 AM, Gelin Yan dynami...@gmail.com wrote: Hi All When I used numpy 1.7.0 with cx_freeze 4.3.1 on windows, I quickly found out even a simple import numpy may lead to

Re: [Numpy-discussion] [EXTERNAL] swig interface file (numpy.i) warning

2013-02-24 Thread Bill Spotz
I wanted to take a stab at updating numpy.i to not use deprecated NumPy C/API code. Nothing in the git logs indicates this has already been done. I added #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION to numpy.i right before it includes numpy/arrayobject.h. The built-in tests for numpy.i

Re: [Numpy-discussion] a question about freeze on numpy 1.7.0

2013-02-24 Thread Gelin Yan
On Mon, Feb 25, 2013 at 9:16 AM, Ondřej Čertík ondrej.cer...@gmail.comwrote: Hi Gelin, On Sun, Feb 24, 2013 at 12:08 AM, Gelin Yan dynami...@gmail.com wrote: Hi All When I used numpy 1.7.0 with cx_freeze 4.3.1 on windows, I quickly found out even a simple import numpy may lead to

Re: [Numpy-discussion] a question about freeze on numpy 1.7.0

2013-02-24 Thread Bradley M. Froehle
I can reproduce with NumPy 1.7.0, but I'm not convinced the bug lies within NumPy. The exception is not being raised on the `del sys` line. Rather it is being raised in numpy.__init__: File /home/bfroehle/.local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py, line 27, in module