<div class="gmail_quote">On Mon, Oct 24, 2011 at 3:38 PM, nicky van foreest <span dir="ltr"><<a href="mailto:vanforeest@gmail.com">vanforeest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sorry for my misunderstanding. This is the output:<br>
<br>
nicky@chuck:~$ python<br>
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)<br>
[GCC 4.6.1] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import peak.util.addons<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
ImportError: No module named addons<br>
>>> import peak.util<br>
>>> print peak.util.__path__<br>
['/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util']<br>
<div class="im">>>> import pkg_resources<br>
>>> pkg_resources.require('AddOns')<br>
</div>[AddOns 0.7 (/home/nicky/lib/python/AddOns-0.7-py2.7.egg),<br>
DecoratorTools 1.8<br>
(/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg)]<br>
>>> print peak.util.__path__<br>
['/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util']<br>
>>> import peak.util.addons<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
ImportError: No module named addons<br>
<div class="im">>>><br>
<br>
> My guess is that you now have a peak.util directory in your Ubuntu system<br>
> Python directory and it's not working properly with your current directory.<br>
<br>
</div>I also checked whether my system contains any other peak.util<br>
directory than the one in ~/lib/python , but this is not the case.<br></blockquote><div><br></div><div>Okay, try doing the same thing, but this time also do:</div><div><br></div><div>>>> pkg_resources.declare_namespace('peak.util')</div>
<div><br></div><div>Before the "require()" call, and see if peak.util.__path__ changes.</div><div><br></div><div><br></div></div>