Re: peak/utils/addons import problem

PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Mon, 24 Oct 2011 16:49:36 -0400
Newsgroups gmane.comp.python.peak
Message-ID <CALeMXf7PbBSphkBeSeWkyQmwWTtepyfZHCDmRjB=p1Xdaie23w@mail.gmail.com>
--===============1907750012==
Content-Type: multipart/alternative; boundary=20cf3002590a939fa404b0118fef

--20cf3002590a939fa404b0118fef
Content-Type: text/plain; charset=ISO-8859-1

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  4 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):
>  File "<stdin>", line 1, in <module>
> ImportError: No module named addons
>

Ugh.  Oh.  Actually, I just thought of something.  At the beginning, import
peak and then print peak.__path__  too.  I think I may've missed something
there.

--20cf3002590a939fa404b0118fef
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, Oct 24, 2011 at 4:18 PM, nicky v=
an foreest <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">va=
[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"=
>
Thanks for your support. I guess this is the right sequence:<br>
<div class=3D"im"><br>
nicky@chuck:~$ python<br>
Python 2.7.2+ (default, Oct =A04 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.util<br>
</div>&gt;&gt;&gt; import pkg_resources<br>
&gt;&gt;&gt; pkg_resources.declare_namespace(&#39;peak.util&#39;)<br>
<div class=3D"im">&gt;&gt;&gt; pkg_resources.require(&#39;AddOns&#39;)<br>
[AddOns 0.7 (/home/nicky/lib/python/AddOns-0.7-py2.7.egg),<br>
DecoratorTools 1.8<br>
(/home/nicky/lib/python/DecoratorTools-1.8-py2.7.egg)]<br>
&gt;&gt;&gt; print peak.util.__path__<br>
[&#39;/home/nicky/lib/python/Extremes-1.1.1-py2.7.egg/peak/util&#39;]<br>
&gt;&gt;&gt; import peak.util.addons<br>
Traceback (most recent call last):<br>
 =A0File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
ImportError: No module named addons<br></div></blockquote><div><br></div><d=
iv>Ugh. =A0Oh. =A0Actually, I just thought of something. =A0At the beginnin=
g, import peak and then print peak.__path__ =A0too. =A0I think I may&#39;ve=
 missed something there.</div>
</div>

--20cf3002590a939fa404b0118fef--

--===============1907750012==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PEAK mailing list
[email protected]
http://www.eby-sarna.com/mailman/listinfo/peak
--===============1907750012==--