John Hunter wrote:
> On 7/22/07, Dave Peterson <[EMAIL PROTECTED]> wrote:
>   
>> Hmm, why did you choose to install enthought.debug?  The current source
>> for enthought.traits requires only enthought.etsconfig (which has no
>> other dependencies) and enthought.util (which, without extras, requires
>> only enthought.traits.)
>>     
>
> I added enthought debug to our list of enthought packages a few days
> back when I was having install troubles.  I think this was back when
> the traits 3 stuff was creeping into our traits 2 installs, and I was
> getting error messages about not having debug installed.  That may
> have all gone away now with your recent work, and it is probably a
> residual hack in our install instructions.
>
> 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
>
> But if I add the resource explcitly,
>
>    sudo rm -rf /usr/local/lib/python2.5/site-packages/enthought*
>    sudo easy_install -f
> http://code.enthought.com/enstaller/eggs/source/unstable
> "enthought.resource <3.0a" "enthought.traits < 3.0a"
>
> I get a working traits install, so maybe a simple dependency is
> missing somewhere.  
>   

It does look like one of the dependencies in enthought.traits is wrong 
then.  In particular, it was thought that enthought.resource was only 
required if you actually *used* Traits UI features.   I just looked at 
the code and the only import, in traits, of a package from 
enthought.resource is in the tree_node.py file which is imported as part 
of the enthought.traits.ui.api namespace -- which means it happens 
*alot*.  I'll look at avoiding that import, or handling it in a 
try...except, or update the dependencies and check the changes in as 
soon as I can get to it.  (I'm in the middle of something else currently.)

(Thanks to Darren Dale for providing the full traceback btw.)


-- Dave

-------------------------------------------------------------------------
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
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to