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

fred fredmfp at gmail.com
Thu Apr 24 09:03:42 EDT 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://mail.scipy.org/pipermail/scipy-user/attachments/20080424/fc33faee/attachment.py>


More information about the SciPy-User mailing list