[Python-projects] Problems with latest astng or common or with setuptools/easy_install?
Sylvain Thénault
sylvain.thenault at logilab.fr
Fri Nov 21 16:01:06 CET 2008
On Fri, Nov 21, 2008 at 08:41:49AM -0600, skip at pobox.com wrote:
>
> I saw the announcement about astng 0.17.4 so I easy_install'd it and also
> made sure my logilab-common and pylint pakages were up-to-date. These eggs
> were listed in easy-install.pth:
>
> ./pylint-0.15.2-py2.7.egg
> ./logilab_astng-0.17.4-py2.7.egg
> ./logilab_common-0.36.1-py2.7.egg
>
> When I run pytest it complains:
>
> Traceback (most recent call last):
> File "/Users/skip/local/bin/pytest", line 5, in <module>
> pkg_resources.run_script('logilab-common==0.36.1', 'pytest')
> File "build/bdist.macosx-10.3-i386/egg/pkg_resources.py", line 448, in run_script
> File "build/bdist.macosx-10.3-i386/egg/pkg_resources.py", line 1166, in run_script
> File "/Users/skip/local/lib/python2.7/site-packages/logilab_common-0.36.1-py2.7.egg/EGG-INFO/scripts/pytest", line 3, in <module>
> from logilab.common.pytest import run
> ImportError: No module named common.pytest
>
> >From the Python prompt:
>
> % python
> Python 2.7a0 (trunk:67276M, Nov 18 2008, 21:20:11)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import logilab.common
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named common
> >>> import common
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named common
> >>> import logilab
> >>> dir(logilab)
> ['[astng/]', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']
>
> Is there something wrong with logilab.common 0.36.1? (The dir() command is
> a homegrown extension. Square brackets around an item indicates it has yet
> to be imported. The trailing slash says it's a package.)
nice extension :)
> I dumped the easy-install'd versions of all three and installed from tar
> files. Now things work.
nothing wrong but we still have the problem that there is not support
for having logilab subpackages provided by different eggs file, preventing
easy_install to work correctly I think.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list