[Python-projects] install problem - pylint winXP python 2.3

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Nov 15 19:51:30 CET 2006


On Wednesday 15 November à 14:17, Amaury Forgeotdarc wrote:
> Hello,
>  
> > ImportError: cannot import name GenExpr
> I had the same problem.
> A solution is to replace the following lines in site-packages\logilab\astng\
> scoped_nodes.py:
>  
>  
> """
> from compiler.ast import Class, Const, Dict, Function, GenExpr, Lambda, \
>      Module, Name, Pass, Raise, Tuple, Yield
> """
>  
> by:
>  
> """
> from compiler.ast import Class, Const, Dict, Function, Lambda, \
>      Module, Name, Pass, Raise, Tuple, Yield
> try:
>     from compiler.ast import GenExpr
> except ImportError:
>     class GenExpr: pass
> """
>  
> Maybe a fix for the next release?

yep, this is fixed in astng repository as I've already answered, and I
intend to make a 0.16.2 version of astng until the end of the week.

-- 
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