<div class="gmail_quote">On Mon, Oct 24, 2011 at 5:07 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;">
Here is the output. It all looks well.<br>
<div class="im"><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<br>
</div>&gt;&gt;&gt; print peak.__path__<br>
[&#39;/home/nicky/lib/python/Trellis-0.7a2-py2.7.egg/peak&#39;,<br>
&#39;/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak&#39;,<br>
&#39;/home/nicky/lib/python/Contextual-0.7a1.dev_r2695-py2.7.egg/peak&#39;,<br>
&#39;/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg/peak&#39;,<br>
&#39;/home/nicky/lib/python/AddOns-0.7-py2.7.egg/peak&#39;,<br>
&#39;/home/nicky/lib/python/SymbolType-1.0-py2.7.egg/peak&#39;]<br></blockquote><div><br></div><div>Indeed.  So the question is why peak.util.__path__ only contains Extremes, and not AddOns or DecoratorTools.  Okay, try this:</div>
<div><br></div><div>import peak; import sys; print &#39;peak.util&#39; in sys.modules</div><div><br></div><div>If it&#39;s in sys.modules before you explicitly import it, it&#39;s probably an issue in the system python install, and you&#39;ll need to contact the Ubuntu folks.  It might also be a good idea to list all your system packages that install stuff to the system Python, and to check what version of setuptools or Distribute is installed, in case the issue is in the one that&#39;s installed with the system Python.</div>
<div><br></div><div>My guess is that if you use an isolated virtualenv that doesn&#39;t use the systemwide site-packages, this problem will go away.  But that doesn&#39;t mean it shouldn&#39;t be fixed.</div><div><br></div>
<div>(Note that even though you say there&#39;s no peak/util anywhere except in your ~lib/python, I strongly suspect that this has something to do with Debian and Ubuntu distributing a &quot;peak.util&quot; package that contains a whole bunch of peak.util stuff, with different versions of addons, decoratortools, etc. jammed together.)</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
<br>
On 24 October 2011 22:49, PJ Eby &lt;<a href="mailto:pje@telecommunity.com">pje@telecommunity.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Oct 24, 2011 at 4:18 PM, nicky van foreest &lt;<a href="mailto:vanforeest@gmail.com">vanforeest@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Thanks for your support. I guess this is the right sequence:<br>
&gt;&gt;<br>
&gt;&gt; nicky@chuck:~$ python<br>
&gt;&gt; Python 2.7.2+ (default, Oct  4 2011, 20:06:09)<br>
&gt;&gt; [GCC 4.6.1] on linux2<br>
&gt;&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt; &gt;&gt;&gt; import peak.util<br>
&gt;&gt; &gt;&gt;&gt; import pkg_resources<br>
&gt;&gt; &gt;&gt;&gt; pkg_resources.declare_namespace(&#39;peak.util&#39;)<br>
&gt;&gt; &gt;&gt;&gt; pkg_resources.require(&#39;AddOns&#39;)<br>
&gt;&gt; [AddOns 0.7 (/home/nicky/lib/python/AddOns-0.7-py2.7.egg),<br>
&gt;&gt; DecoratorTools 1.8<br>
&gt;&gt; (/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg)]<br>
&gt;&gt; &gt;&gt;&gt; print peak.util.__path__<br>
&gt;&gt; [&#39;/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util&#39;]<br>
&gt;&gt; &gt;&gt;&gt; import peak.util.addons<br>
&gt;&gt; Traceback (most recent call last):<br>
&gt;&gt;  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
&gt;&gt; ImportError: No module named addons<br>
&gt;<br>
&gt; Ugh.  Oh.  Actually, I just thought of something.  At the beginning, import<br>
&gt; peak and then print peak.__path__  too.  I think I may&#39;ve missed something<br>
&gt; there.<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
PEAK mailing list<br>
<a href="mailto:PEAK@eby-sarna.com">PEAK@eby-sarna.com</a><br>
<a href="http://www.eby-sarna.com/mailman/listinfo/peak" target="_blank">http://www.eby-sarna.com/mailman/listinfo/peak</a><br>
</div></div></blockquote></div><br>