[PEAK] peak/utils/addons import problem
PJ Eby
pje at telecommunity.com
Mon Oct 24 15:13:09 EDT 2011
On Mon, Oct 24, 2011 at 2:58 PM, nicky van foreest <vanforeest at gmail.com>wrote:
> > I notice that an Addons egg was in your easy-install.pth; is the egg file
> > actually there?
>
> Yes:
>
> nicky at chuck:~/lib/python$ ls
> AddOns-0.7-py2.7.egg/ Contextual-0.7a1.dev_r2695-py2.7.egg/
> DecoratorTools-1.8-py2.7.egg/ easy-install.pth
> Extremes-1.1.1-py2.7.egg/ pulp.py* Pweave* pysparse-1.0.1/ site.py
> site.pyc SymbolType-1.0-py2.7.egg/ tables@ tables-2.1.2/
> Trellis-0.7a2-py2.7.egg/
>
> What happens if you start a fresh Python interpreter and
> > import peak.util.addons?
>
> I started ipython:
>
> In [1]: import peak.util.extremes
> peak.util.extremes
>
> it only autocompletes to peak.util.extremes. Pressing tab doesn't give
> any other option for peak.util than extremes.
>
I didn't say IPython, I said a Python interpreter. I didn't ask about
autocompletion, I asked about importing.
This time, use regular Python, and actually try importing addons.
If you get an error, also do this:
>>> import peak.util
>>> print peak.util.__path__
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:
>>> import pkg_resources
>>> pkg_resources.require('AddOns')
Then see if peak.util.__path__ then includes the AddOns egg, and whether
"import peak.util.addons" now works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20111024/c05dd688/attachment.html
More information about the PEAK
mailing list