Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Ralf Gommers
On Thu, Oct 25, 2012 at 6:01 AM, Jack Bryan dtustud...@hotmail.com wrote: Hi, All, I am trying to install numpy from http://www.scipy.org/Download . by git clone git://github.com/numpy/numpy.git numpy But, when I ran python setup.py install I got: SystemError: Cannot compile

Re: [Numpy-discussion] how to pipe into numpy arrays?

2012-10-25 Thread Dag Sverre Seljebotn
On 10/24/2012 09:00 PM, Michael Aye wrote: As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine storing the data in a string and use StringIO but the

Re: [Numpy-discussion] how to pipe into numpy arrays?

2012-10-25 Thread Dag Sverre Seljebotn
On 10/25/2012 08:17 AM, Dag Sverre Seljebotn wrote: On 10/24/2012 09:00 PM, Michael Aye wrote: As numpy.fromfile seems to require full file object functionalities like seek, I can not use it with the sys.stdin pipe. So how could I stream a binary pipe directly into numpy? I can imagine

Re: [Numpy-discussion] np.linalg.lstsq with several columns all 0 = huge x ?

2012-10-25 Thread denis
On 24/10/2012 19:59, josef.p...@gmail.com wrote: On Wed, Oct 24, 2012 at 1:33 PM, denisdenis-bz...@t-online.de wrote: Folks, np.linalg.lstsq of a random-uniform A 50 x 32 with 3 columns all 0 returns x[:3] 0 as expected, but 4 columns all 0 = huge x: lstsq has rcond argument to do (I

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Jack Bryan
Thanks for your invitation. I cannot use rpm command because I am not root user and cannot get sys-adm authorization. Any help will be appreciated. Thanks Date: Thu, 25 Oct 2012 08:05:47 +0200 From: ralf.gomm...@gmail.com To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] error

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Jack Bryan
Hi, I have installed python2.6 in my local dir. But, when I used python setup.py install --user to install numpy , I got: $ python setup.py install --user'import site' failed; use -v for tracebackTraceback (most recent call last): File setup.py, line 18, in moduleimport osImportError: No

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Aron Ahmadia
Hi Jack, import os Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named os You've got a broken local python install. Did you try following the instructions here: http://stackoverflow.com/a/622810/122022? It is probably easiest to ask your system

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Jack Bryan
Hi, Aron, I have to install in my local dir. The sys-adm cannot help me. Any help will be appreciated. Date: Thu, 25 Oct 2012 16:00:07 +0100 From: a...@ahmadia.net To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] error of install numpy on linux redhat. Hi Jack,

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Aron Ahmadia
I'm repeating myself, but did you try following the instructions here: http://stackoverflow.com/a/622810/122022? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Paul Hobson
On Wed, Oct 24, 2012 at 9:01 PM, Jack Bryan dtustud...@hotmail.com wrote: Hi, All, I am trying to install numpy from http://www.scipy.org/Download . by git clone git://github.com/numpy/numpy.git numpy But, when I ran python setup.py install I got: SystemError: Cannot compile

[Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread David Warde-Farley
I submitted a pull request and one of the Travis builds is failing: https://travis-ci.org/#!/numpy/numpy/jobs/2933551 Given my changes, https://github.com/dwf/numpy/commit/4c88fdafc003397d6879f81bf59f68adeeb59f2b I don't see how the masked array module (responsible for the failing

Re: [Numpy-discussion] einsum slow vs (tensor)dot

2012-10-25 Thread David Warde-Farley
On Wed, Oct 24, 2012 at 7:18 AM, George Nurser gnur...@gmail.com wrote: Hi, I was just looking at the einsum function. To me, it's a really elegant and clear way of doing array operations, which is the core of what numpy is about. It removes the need to remember a range of functions, some of

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread Sebastian Berg
On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote: I submitted a pull request and one of the Travis builds is failing: https://travis-ci.org/#!/numpy/numpy/jobs/2933551 Don't worry about that failure on Travis... It happens randomly on at the moment and its unrelated to

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread David Warde-Farley
On Thu, Oct 25, 2012 at 6:15 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote: Don't worry about that failure on Travis... It happens randomly on at the moment and its unrelated to anything you are doing. Ah, okay. I figured it

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread Charles R Harris
Hi Sebastian, On Thu, Oct 25, 2012 at 4:15 PM, Sebastian Berg sebast...@sipsolutions.netwrote: On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote: I submitted a pull request and one of the Travis builds is failing: https://travis-ci.org/#!/numpy/numpy/jobs/2933551 Don't

Re: [Numpy-discussion] error of install numpy on linux redhat.

2012-10-25 Thread Jack Bryan
Hi, Aron, I have followed the instructions on the url, after installing python 2.6, I tried to install numpy and got : [~/numpy/numpy] $ /home/user/myName/.local/bin/python setup.py installTraceback (most recent call last): File setup.py, line 22, in moduleimport subprocess File

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread David Warde-Farley
On Thu, Oct 25, 2012 at 8:39 PM, josef.p...@gmail.com wrote: On Thu, Oct 25, 2012 at 6:58 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: On Thu, Oct 25, 2012 at 6:15 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Thu, 2012-10-25 at 17:48 -0400, David Warde-Farley wrote:

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread josef . pktd
On Thu, Oct 25, 2012 at 11:48 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: On Thu, Oct 25, 2012 at 8:39 PM, josef.p...@gmail.com wrote: On Thu, Oct 25, 2012 at 6:58 PM, David Warde-Farley warde...@iro.umontreal.ca wrote: On Thu, Oct 25, 2012 at 6:15 PM, Sebastian Berg

Re: [Numpy-discussion] copy/deepcopy pull request, Travis build failure

2012-10-25 Thread David Warde-Farley
On Fri, Oct 26, 2012 at 1:04 AM, josef.p...@gmail.com wrote: Fine, I didn't understand that part correctly. I have no opinion in that case. (In statsmodels we only use copy the array method and through np.array().) Do you implement __copy__ or __deepcopy__ on your objects? If not, client