[Numpy-discussion] numpy and freeze.py

2007-05-22 Thread Hanno Klemm
Hi, I want to use freeze.py on code that heavily relies on numpy. If I just try python2.5 /scratch/src/Python-2.5/Tools/freeze/freeze.py pylay.py the make works but then I get the error: Traceback (most recent call last): File pylay.py, line 1, in module import kuvBeta4 as kuv File

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Robert Kern
Gong, Shawn (Contractor) wrote: Hi Robert, I used exactly your text in site.cfg. The out.txt seems to get the lib_dir, but import numpy in python stills gives error. *What* error? Please copy-and-paste the complete error message. Please see the attached files. Should I ask system guys to

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Robert Kern
Gong, Shawn (Contractor) wrote: 2) Then in Python, when I type import numpy It says: Running from numpy source directory Then I type numpy.sqrt(5) AttributeError: 'module' object has no attribute 'sqrt' I assume that this means numpy was not installed successfully. No, it means that you are

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
Hi Robert Running from numpy source directory message also appears when I installed numpy. I am running python 2.3.6, not 2.4 You said It is picking up the partial numpy package in the source. Do you mean it is picking up the partial numpy package from python 2.3.6 ? How do I change out of

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread David M. Cooke
On Tue, May 22, 2007 at 01:11:35PM -0400, Gong, Shawn (Contractor) wrote: Hi Robert Running from numpy source directory message also appears when I installed numpy. I am running python 2.3.6, not 2.4 Just what it says; the current directory is the directory that the numpy source is in. If you

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import

Re: [Numpy-discussion] numpy and freeze.py

2007-05-22 Thread Mark Janikas
I cant be sure if your issue is related to mine, so I was wondering where/when you got your numpy build? My issue: http://projects.scipy.org/pipermail/numpy-discussion/2007-April/027000.h tml Travis has been kind enough to work with me on it. His changes are in the svn. So, I don't think this

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
Sorry forgot to mention that Python was installed with-thread=no as it is required for OpenEV application. I remember that when I installed numarray I had to set --unthreaded Maybe I need to do the same thing. Can someone tell me how to set this flag? Thanks, Shawn -Original Message-

[Numpy-discussion] MAX_INT?

2007-05-22 Thread Bill Baxter
Is there a way to obtain the equivalent of MAX_INT for the integral types numpy knows about? I know about numpy.finfo for the floating point types, but is there anything like that for integral types? Thanks, --Bill ___ Numpy-discussion mailing list

Re: [Numpy-discussion] MAX_INT?

2007-05-22 Thread Robert Kern
Bill Baxter wrote: Is there a way to obtain the equivalent of MAX_INT for the integral types numpy knows about? I know about numpy.finfo for the floating point types, but is there anything like that for integral types? SVN numpy has numpy.lib.getlimits.iinfo(), now. -- Robert Kern I have

Re: [Numpy-discussion] MAX_INT?

2007-05-22 Thread Bill Baxter
Great. Thanks! Is there a plan to expose that as numpy.iinfo? --bb On 5/23/07, Robert Kern [EMAIL PROTECTED] wrote: Bill Baxter wrote: Is there a way to obtain the equivalent of MAX_INT for the integral types numpy knows about? I know about numpy.finfo for the floating point types, but

[Numpy-discussion] More help with numpy and SWIG

2007-05-22 Thread vallis . 35530053
Hello, I am trying to use numpy in conjuction with a custom SWIGged C struct (real_vec_t) that contains array data. I'd like to use the array interface to share the array data between real_vec_t and numpy. I have two questions for a combined numpy/SWIG magician: - This is how I implement the