Re: peak/utils/addons import problem
nicky van foreest <[email protected]> Mon, 24 Oct 2011 21:38:23 +0200
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <CAK_GA2HV4dWLwUfvPW3RmdWUu8NtjEK8ZuL3TWQ6ALWYrrT+8A@mail.gmail.com> |
Sorry for my misunderstanding. This is the output:
nicky@chuck:~$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import peak.util.addons
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named addons
>>> import peak.util
>>> print peak.util.__path__
['/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util']
>>> import pkg_resources
>>> pkg_resources.require('AddOns')
[AddOns 0.7 (/home/nicky/lib/python/AddOns-0.7-py2.7.egg),
DecoratorTools 1.8
(/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg)]
>>> print peak.util.__path__
['/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util']
>>> import peak.util.addons
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named addons
>>>
> My guess is that you now have a peak.util directory in your Ubuntu system
> Python directory and it's not working properly with your current directory.
I also checked whether my system contains any other peak.util
directory than the one in ~/lib/python , but this is not the case.