traits depends on pyface?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

traits depends on pyface?

Christopher Burns
I installed Traits 3.3 from pypi along with the listed dependencies:
http://pypi.python.org/pypi/Traits/3.3.0

I have no other enthought packages installed on this machine.  When I
create a File attribute, it triggers a chain of editor imports which
results in a failed import of pyface.  This implies pyface is a
dependency of Traits?  What's the easiest way around this?

/r/d0/cirl/cburns/src/nipy-sf/nipype/trunk/nipype/interfaces/fsl/preprocess.py
in BetInputSpec()
     31     infile = traits.File(exists=True,
     32                          desc = 'input file to skull strip',
---> 33                          argstr='%s', position=0, mandatory=True)
     34     outfile = traits.File(desc = 'name of output skull stripped image',
     35                           argstr='%s', position=1, genfile=True)

/home/cirl/cburns/local/lib/python2.6/site-packages/Traits-3.3.0-py2.6-linux-x86_64.egg/enthought/traits/trait_types.pyc
in __init__(self, value, filter, auto_set, entries, exists,
**metadata)
   1444
   1445         super( File, self ).__init__( value, filter, auto_set,
entries, exists,
-> 1446                                       **metadata )
   1447
   1448 #-------------------------------------------------------------------------------


/home/cirl/cburns/local/lib/python2.6/site-packages/Traits-3.3.0-py2.6-linux-x86_64.egg/enthought/traits/trait_types.pyc
in __init__(self, value, filter, auto_set, entries, exists,
**metadata)
   1390         # (instead of from the api), then we land up with a
circular import

   1391         # problem).

-> 1392         from .ui.editors.file_editor import FileEditor
   1393
   1394         metadata.setdefault( 'editor', FileEditor( filter   =
filter or [],

/home/cirl/cburns/local/lib/python2.6/site-packages/Traits-3.3.0-py2.6-linux-x86_64.egg/enthought/traits/ui/editors/__init__.py
in <module>()
     20 from __future__ import absolute_import
     21
---> 22 from .api import (toolkit, ArrayEditor, BooleanEditor, ButtonEditor,
     23     CheckListEditor, CodeEditor, ColorEditor, CompoundEditor,
CustomEditor,
     24     DateEditor, DefaultOverride, DirectoryEditor, DNDEditor, DropEditor,

/home/cirl/cburns/local/lib/python2.6/site-packages/Traits-3.3.0-py2.6-linux-x86_64.egg/enthought/traits/ui/editors/api.py
in <module>()
     25 from .instance_editor import InstanceEditor
     26 from .list_editor import ListEditor
---> 27 from .list_str_editor import ListStrEditor
     28 from .null_editor import NullEditor
     29 from .range_editor import RangeEditor

/home/cirl/cburns/local/lib/python2.6/site-packages/Traits-3.3.0-py2.6-linux-x86_64.egg/enthought/traits/ui/editors/list_str_editor.py
in <module>()
     31 from ..toolkit import toolkit_object
     32
---> 33 from ....pyface.image_resource import ImageResource
     34
     35 #-------------------------------------------------------------------------------


ImportError: No module named pyface.image_resource

In [2]:


Thanks!
Chris


--
Christopher Burns
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
510-643-4053
http://cirl.berkeley.edu/
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: traits depends on pyface?

Robert Kern
On Tue, Mar 23, 2010 at 2:34 PM, Christopher Burns <[hidden email]> wrote:
> I installed Traits 3.3 from pypi along with the listed dependencies:
> http://pypi.python.org/pypi/Traits/3.3.0
>
> I have no other enthought packages installed on this machine.  When I
> create a File attribute, it triggers a chain of editor imports which
> results in a failed import of pyface.  This implies pyface is a
> dependency of Traits?  What's the easiest way around this?

Ugh. Someone messed up when they set the default editor there. But if
you don't need Traits UI, don't bother using File. Just use Str.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: traits depends on pyface?

Robert Kern
In reply to this post by Christopher Burns
On Tue, Mar 23, 2010 at 2:34 PM, Christopher Burns <[hidden email]> wrote:
> I installed Traits 3.3 from pypi along with the listed dependencies:
> http://pypi.python.org/pypi/Traits/3.3.0
>
> I have no other enthought packages installed on this machine.  When I
> create a File attribute, it triggers a chain of editor imports which
> results in a failed import of pyface.  This implies pyface is a
> dependency of Traits?  What's the easiest way around this?

Fixed in SVN.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: traits depends on pyface?

Christopher Burns
Excellent, thanks Robert!

On Tue, Mar 23, 2010 at 1:05 PM, Robert Kern <[hidden email]> wrote:
>
> Fixed in SVN.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev