Re: peak/utils/addons import problem

nicky van foreest <[email protected]> Mon, 24 Oct 2011 23:07:47 +0200
Newsgroups gmane.comp.python.peak
Message-ID <CAK_GA2E=4d+XVQZqh+ywyv+Vfp-7x-MjG=Yu1ZpKvFznEeyBjA@mail.gmail.com>
Here is the output. It all looks well.

nicky@chuck:~$ python
Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import peak
>>> print peak.__path__
['/home/nicky/lib/python/Trellis-0.7a2-py2.7.egg/peak',
'/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak',
'/home/nicky/lib/python/Contextual-0.7a1.dev_r2695-py2.7.egg/peak',
'/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg/peak',
'/home/nicky/lib/python/AddOns-0.7-py2.7.egg/peak',
'/home/nicky/lib/python/SymbolType-1.0-py2.7.egg/peak']



On 24 October 2011 22:49, PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> wrote:
>
>
> On Mon, Oct 24, 2011 at 4:18 PM, nicky van foreest <[email protected]>
> wrote:
>>
>> Thanks for your support. I guess this is the right sequence:
>>
>> nicky@chuck:~$ python
>> Python 2.7.2+ (default, Oct =A04 2011, 20:06:09)
>> [GCC 4.6.1] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import peak.util
>> >>> import pkg_resources
>> >>> pkg_resources.declare_namespace('peak.util')
>> >>> pkg_resources.require('AddOns')
>> [AddOns 0.7 (/home/nicky/lib/python/AddOns-0.7-py2.7.egg),
>> DecoratorTools 1.8
>> (/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg)]
>> >>> print peak.util.__path__
>> ['/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util']
>> >>> import peak.util.addons
>> Traceback (most recent call last):
>> =A0File "<stdin>", line 1, in <module>
>> ImportError: No module named addons
>
> Ugh. =A0Oh. =A0Actually, I just thought of something. =A0At the beginning=
, import
> peak and then print peak.__path__ =A0too. =A0I think I may've missed some=
thing
> there.