[Numpy-discussion] bool indices segv

2010-06-22 Thread Geoffrey Ely
Hi, I'm getting a SEGV for boolean indices to a multi-dimensional array (numpy ver 1.4.1). Is this a known problem? Code and backtrace below. Thanks, Geoff import numpy a = numpy.ones((1,1)) a[a0] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182902359776 (LWP

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Robert Kern
On Tue, Jun 22, 2010 at 18:37, Geoffrey Ely g...@usc.edu wrote: Hi, I'm getting a SEGV for boolean indices to a multi-dimensional array (numpy ver 1.4.1). Is this a known problem? Code and backtrace below. No, and I cannot replicate it on OS X. Can you give more details about your platform

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Maria Liukis
Hi Geoff, It's working in numpy V1.3.0: import numpy numpy.__version__ '1.3.0' a = numpy.ones((1,1)) a[a0] array([ 1.]) Thanks, Masha liu...@usc.edu On Jun 22, 2010, at 4:37 PM, Geoffrey Ely wrote: Hi, I'm getting a SEGV for boolean indices to a

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Geoffrey Ely
No, and I cannot replicate it on OS X. Can you give more details about your platform and how you built numpy? $ uname -a Linux login3.ranger.tacc.utexas.edu 2.6.9-78.0.22.EL_lustre_TACC #9 SMP Wed Nov 4 16:21:54 CST 2009 x86_64 x86_64 x86_64 GNU/Linux Python 2.6.5 built with ./configure make

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Benjamin Root
On Tue, Jun 22, 2010 at 7:01 PM, Geoffrey Ely g...@usc.edu wrote: No, and I cannot replicate it on OS X. Can you give more details about your platform and how you built numpy? $ uname -a Linux login3.ranger.tacc.utexas.edu 2.6.9-78.0.22.EL_lustre_TACC #9 SMP Wed Nov 4 16:21:54 CST 2009

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Geoffrey Ely
On Jun 22, 2010, at 5:13 PM, Benjamin Root wrote: Which distro of Linux are you using? The kernel version is fairly old, but the installation date is less than a year old. Also, what version of python is available through Distribute? It is CentOS, heavily customized, I am sure, for this

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Charles R Harris
On Tue, Jun 22, 2010 at 6:38 PM, Geoffrey Ely g...@usc.edu wrote: On Jun 22, 2010, at 5:13 PM, Benjamin Root wrote: Which distro of Linux are you using? The kernel version is fairly old, but the installation date is less than a year old. Also, what version of python is available through

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread David
On 06/23/2010 09:38 AM, Geoffrey Ely wrote: Not sure if Python itself is available through PyPI/distribute. I installed Python 2.6.5 from source. As I understand it, setuptools does not work well for Numpy install, but distribute is a bit better. Is that true? No, it is even worse. Is

Re: [Numpy-discussion] bool indices segv

2010-06-22 Thread Geoffrey Ely
On Jun 22, 2010, at 7:11 PM, David wrote: Is it better to avoid setuptools/distribute/PyPI altogether? Yes, unless you need their features (which in the case of numpy is mostly egg, since installing from pypi rarely works anyway). OK, installing from source solved the problem (and so did