Re: peak/utils/addons import problem
nicky van foreest <[email protected]> Tue, 25 Oct 2011 21:21:21 +0200
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <CAK_GA2HSAHu=zqzR8OQw8C0hqHEbDeU2MkdQDM998r5YB=bg0Q@mail.gmail.com> |
> Indeed. =A0So the question is why peak.util.__path__ only contains Extrem= es, > and not AddOns or DecoratorTools. =A0Okay, try this: > import peak; import sys; print 'peak.util' in sys.modules This gives `False', as expected from your explanation below. > If it's in sys.modules before you explicitly import it, it's probably an > issue in the system python install, and you'll need to contact the Ubuntu > folks. =A0It might also be a good idea to list all your system packages t= hat > install stuff to the system Python, and to check what version of setuptoo= ls > or Distribute is installed, in case the issue is in the one that's instal= led > with the system Python. To check this I decided to remove all the directories containing Addons, etc., and reinstall with pip. At first I installed trellis with pip into ~/lib/python, but this didn't result in a working enviroment too. Then I decided to install trellis into the systemwide site-packages, and now it works. > (Note that even though you say there's no peak/util anywhere except in yo= ur > ~lib/python, I strongly suspect that this has something to do with Debian > and Ubuntu distributing a "peak.util" package that contains a whole bunch= of > peak.util stuff, with different versions of addons, decoratortools, etc. > jammed together.) I am pretty sure this is not the case. I used locate peak |grep util to find any file on the system that matches peak and util (and I updated the database used by locate to ensure it was refreshed). The only ones were in ~/lib/python. Thanks very much for all your help.