[SciPy-user] [trait] Array issue...

fred fredmfp@gmail....
Thu Apr 24 08:03:42 CDT 2008


Hi,

As the enthought-dev ml seems to be "dead" for the moment, I post here...

What's wrong with the following Complete Minimal Example ?

Traceback (most recent call last):
   File "./cme2.py", line 6, in <module>
     class Foo(HasTraits):
   File "./cme2.py", line 8, in Foo
     a = Array((3, 3), Int)
   File 
"/usr/local/lib/python2.5/site-packages/enthought.traits-2.0.4.dev_r18169-py2.5-linux-i686.egg/enthought/traits/traits.py", 
line 329, in __call__
     return self.maker_function( *args, **metadata )
   File 
"/usr/local/lib/python2.5/site-packages/enthought.traits-2.0.4.dev_r18169-py2.5-linux-i686.egg/enthought/traits/traits.py", 
line 805, in Array
     return _Array( dtype, shape, value, coerce = False, **metadata )
   File 
"/usr/local/lib/python2.5/site-packages/enthought.traits-2.0.4.dev_r18169-py2.5-linux-i686.egg/enthought/traits/traits.py", 
line 879, in _Array
     raise TraitError( "could not convert %r to a numpy dtype" % dtype)
TypeError: not all arguments converted during string formatting


If somebody has any clue...

TIA.


Cheers,

-- 
Fred
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cme2.py
Type: text/x-python
Size: 210 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20080424/fc33faee/attachment-0001.py 


More information about the SciPy-user mailing list