[Numpy-discussion] 64-bit Fedora 9 a=numpy.zeros(0x80000000, dtype='b1')
Charles R Harris
Sat Sep 12 08:35:11 CDT 2009
On Fri, Sep 11, 2009 at 2:22 PM, Sebastian <firstname.lastname@example.org> wrote:
> The folks at stsci (Jim T.) are not able to reproduce this error with
> 1.4.0.dev7362 so I guess there is something wrong with my numpy
> I also tried '1.4.0.dev7362' and numpy1.3 (stable) but alas, the same
> My system:
> [root@siate numpy]# uname -a
> Linux siate.iate.oac.uncor.edu 126.96.36.199-78.2.56.fc9.x86_64 #1 SMP Thu Jun
> 18 12:24:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
> Below is the numpy error and the the output of numpy, build and install as
> python setup.py build > build.txt
> python setup.py install > install.txt
> Can't work out what is going wrong here. I don't think I'm missing some
> dependency nor mixing compilers, but maybe I'm wrong, any hints?
> best regards,
> - Sebastian Gurovich
> [root@siate soft]# ipython
> Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
> Type "copyright", "credits" or "license" for more information.
> IPython 0.8.3 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
> In : numpy.__version__
> Out: '1.4.0.dev7375'
> In : a=numpy.zeros(0x80000000,dtype='b1')
I expect 0x80000000 is interpreted by python as a negative number. Try 2**31
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion