Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-27-2010, 07:15 AM   #1
LQ Newbie
Registered: Jul 2010
Location: Germany
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Python: No module named enthought.traits.api

I just try to use the python package Traits. Following code:

from enthought.traits.api import HasTraits,Int,Float,Str,Property

class Person(HasTraits):
   name = Str
   age = Int
   height = Float
   weight = Float

p = Person(name="Billy",age=18,height=2.,weight=90)
#p.height = "Raspberries"   #As height expects a float, this gives an error

This just doesn't work giving following Errors back:

Traceback (most recent call last):
  File "", line 1, in <module>
    from enthought.traits.api import HasTraits,Int,Float,Str,Property
ImportError: No module named enthought.traits.api

I" m using Debian (squeeze/sid) so I tried to apt-get install python-enthought-traits-ui, python-enthought-traits, python-traits, python-traitsgui. The problem is those packages have unmet dependencies so I' m blocked here.

Any Hint or Idea how?

Many thanks!!
Old 07-27-2010, 09:50 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
Is your package manager database up to date? Assuming that it is, you might simply have to track down the dependencies manually----OR: Is it possible that you need to enable some additional repositories?
Old 07-28-2010, 03:45 AM   #3
LQ Newbie
Registered: Jul 2010
Location: Germany
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Up to date yes. I' m trying to solve the independences manually.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Portage API crosstalk Gentoo 1 07-17-2010 03:52 PM
"ImportError: No module named gobject", Exaile fails to run. Python problem. kummiliim Linux - Software 1 12-11-2008 02:12 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 04:44 AM
Querying with the RPM Python API 7ofClubs Programming 1 06-11-2007 10:56 AM
Python + metaweblog api vharishankar Programming 2 11-24-2006 09:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration