<div class="gmail_quote">On Mon, Oct 24, 2011 at 3:38 PM, nicky van foreest <span dir="ltr">&lt;<a href="mailto:vanforeest@gmail.com">vanforeest@gmail.com</a>&gt;</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 &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt; import peak.util.addons<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
ImportError: No module named addons<br>
&gt;&gt;&gt; import peak.util<br>
&gt;&gt;&gt; print peak.util.__path__<br>
[&#39;/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util&#39;]<br>
<div class="im">&gt;&gt;&gt; import pkg_resources<br>
&gt;&gt;&gt; pkg_resources.require(&#39;AddOns&#39;)<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>
&gt;&gt;&gt; print peak.util.__path__<br>
[&#39;/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util&#39;]<br>
&gt;&gt;&gt; import peak.util.addons<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
ImportError: No module named addons<br>
<div class="im">&gt;&gt;&gt;<br>
<br>
&gt; My guess is that you now have a peak.util directory in your Ubuntu system<br>
&gt; Python directory and it&#39;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>&gt;&gt;&gt; pkg_resources.declare_namespace(&#39;peak.util&#39;)</div>
<div><br></div><div>Before the &quot;require()&quot; call, and see if peak.util.__path__ changes.</div><div><br></div><div><br></div></div>