David Warde-Farley | 2 Jun 2009 02:38
Picon
Favicon
Gravatar

Code-checkers & ETS packages

Hi,

I've noticed that pylint, in particular, has a lot of trouble with  
Traits and other Enthought packages (saw this with Chaco as well).

No config file found, using default configuration
************* Module new_tools
E: 14: No name 'traits' in module 'enthought'
F: 14: Unable to import 'enthought.traits.api' (No module named traits)
E: 15: No name 'traits' in module 'enthought'
F: 15: Unable to import 'enthought.traits.api' (No module named traits)
E: 16: No name 'traits' in module 'enthought'
F: 16: Unable to import 'enthought.traits.api' (No module named traits)
E: 23: No name 'traits' in module 'enthought'
F: 23: Unable to import 'enthought.traits.ui.api' (No module named  
traits)
E: 26: No name 'traits' in module 'enthought'
F: 26: Unable to import 'enthought.traits.ui.api' (No module named  
traits)

Importing with the same python interpreter works fine. Is there  
something broken in the top-level package enthought? I easy_install'd  
Traits not too long ago.

Any suggestions on other code-checking utilities would be helpful as  
well.

Regards,

David

Gmane