<div class="gmail_quote">On Mon, Oct 24, 2011 at 2:58 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;">
<div class="im">> I notice that an Addons egg was in your easy-install.pth; is the egg file<br>
> 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>
> 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't give<br>
any other option for peak.util than extremes.<br></blockquote><div><br></div>I didn't say IPython, I said a Python interpreter. I didn'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">
>>> import peak.util</div><div class="gmail_quote">>>> 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's not working properly with your current directory. If peak.util.__path__ doesn't list the AddOns egg, then try:</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">>>> import pkg_resources</div><div class="gmail_quote">>>> pkg_resources.require('AddOns')</div><div class="gmail_quote"><br></div><div class="gmail_quote">
Then see if peak.util.__path__ then includes the AddOns egg, and whether "import peak.util.addons" now works.</div><div class="gmail_quote"><br></div>