[Numpy-discussion] numarray: "concatenate along new axis" returns 'unexpected' type

Todd Miller jmiller at stsci.edu
Tue Feb 8 13:12:34 CST 2005


On Tue, 2005-02-08 at 15:45, Peter Verveer wrote:
> > Thanks for the info, but after updating from CVS I get a problem in 
> > nd_image:
> > Python 2.2.1 (#1, Feb  3 2005, 06:16:31)
> > [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
> > <snip>
> >   File "<snip>/numarray/nd_image/_ni_support.py", line 35, in ?
> >     _type_to_num = {
> > AttributeError: 'module' object has no attribute 'Any'
> >
> > After changing:
> > ...
> > import numarray.numerictypes as numarrayt
> > ...
> > numarrayt.Any
> > I then complained about
> >   File "<snip>/numarray/nd_image/_ni_support.py", line 53, in ?
> >     _type_to_num[numarray.UInt64] = 9
> > AttributeError: 'module' object has no attribute 'UInt64'
> 
> Strange, I implemented this yesterday, and it works fine in my setup 
> (OS X). I would think you should be able to access numarray.Any and 
> numarray.UInt64 without import numarray.numerictypes. Maybe Todd can 
> say what the behaviour of numarray should be here.

Unfortunately, no.  I don't have access to Debian and AFIK UInt64 is
invariantly supported except for MSVC6/win32.  Try this:

>>> import numarray.numinclude as numinc
>>> numinc.hasUInt64
1

If it says 0,  it's probably a Debian thing.

If hasUInt64 is 1,  I'd suggest deleting your site-packages/numarray
directory and re-installing numarray.

Regards,
Todd







More information about the Numpy-discussion mailing list