<div class="gmail_quote">On Mon, Oct 24, 2011 at 2:58 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;">
<div class="im">&gt; I notice that an Addons egg was in your easy-install.pth; is the egg file<br>
&gt; actually there?<br>
<br>
</div>Yes:<br>
<br>
nicky@chuck:~/lib/python$ ls<br>
AddOns-0.7-py2.7.egg/  Contextual-0.7a1.dev_r2695-py2.7.egg/<br>
DecoratorTools-1.8-py2.7.egg/  easy-install.pth<br>
Extremes-1.1.1-py2.7.egg/  pulp.py*  Pweave*  pysparse-1.0.1/  site.py<br>
 site.pyc  SymbolType-1.0-py2.7.egg/  tables@  tables-2.1.2/<br>
Trellis-0.7a2-py2.7.egg/<br>
<div class="im"><br>
 What happens if you start a fresh Python interpreter and<br>
&gt; import peak.util.addons?<br>
<br>
</div>I started ipython:<br>
<br>
In [1]: import peak.util.extremes<br>
peak.util.extremes<br>
<br>
it only autocompletes to peak.util.extremes. Pressing tab doesn&#39;t give<br>
any other option for peak.util than extremes.<br></blockquote><div><br></div>I didn&#39;t say IPython, I said a Python interpreter.  I didn&#39;t ask about autocompletion, I asked about importing.<br><br></div><div class="gmail_quote">
This time, use regular Python, and actually try importing addons.</div><div class="gmail_quote"><br></div><div class="gmail_quote">If you get an error, also do this:</div><div class="gmail_quote"><br></div><div class="gmail_quote">
&gt;&gt;&gt; import peak.util</div><div class="gmail_quote">&gt;&gt;&gt; print peak.util.__path__</div><div class="gmail_quote"><br></div><div class="gmail_quote">My guess is that you now have a peak.util directory in your Ubuntu system Python directory and it&#39;s not working properly with your current directory.  If peak.util.__path__ doesn&#39;t list the AddOns egg, then try:</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">&gt;&gt;&gt; import pkg_resources</div><div class="gmail_quote">&gt;&gt;&gt; pkg_resources.require(&#39;AddOns&#39;)</div><div class="gmail_quote"><br></div><div class="gmail_quote">
Then see if peak.util.__path__ then includes the AddOns egg, and whether &quot;import peak.util.addons&quot;  now works.</div><div class="gmail_quote"><br></div>