On Sunday 22 July 2007 12:46:50 pm John Hunter wrote:
> The following, however, gives me a broken install:
>
> sudo rm -rf /usr/local/lib/python2.5/site-packages/enthought*
> sudo easy_install -f
> http://code.enthought.com/enstaller/eggs/source/unstable
> "enthought.traits < 3.0a"
>
> eg, with the file
>
> class C(HasTraits):
> x = Array('d', (3,3))
>
> c = C()
> c.x = [[1,0,0], [0,1,0], [0,0,1]]
>
> I get the traceback:
>
> ImportError: No module named resource.api
Just an additional data point, with traits 3 from the trunk. Running this:
import enthought.traits.api as T
class C(HasTraits):
x = Array('d', (3,3))
c = C()
c.x = [[1,0,0], [0,1,0], [0,0,1]]
yeilds:
Traceback (most recent call last):
[...]
File
"/usr/lib/python2.5/site-packages/enthought.traits-3.0.0b1-py2.5-linux-i686.egg/enthought/traits/has_traits.py",
line 289, in _check_trait
trait = trait()
File
"/usr/lib/python2.5/site-packages/enthought.traits-3.0.0b1-py2.5-linux-i686.egg/enthought/traits/ui/ui_traits.py",
line 125, in __init__
super( Image, self ).__init__( convert_image( value ), **metadata )
File
"/usr/lib/python2.5/site-packages/enthought.traits-3.0.0b1-py2.5-linux-i686.egg/enthought/traits/ui/ui_traits.py",
line 86, in convert_image
from enthought.pyface.image_resource import ImageResource
ImportError: No module named pyface.image_resource
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel