[Python-projects] logilab-common regression (pylint E0611 false positive)

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Apr 7 08:36:51 CEST 2009


Le Monday 06 April 2009 20:29:48 Andrey Rahmatullin, vous avez écrit :
> Hello.

Hi,

> After upgrading to logilab-common 0.39.0 pylint started to issue E0611 on
> "from xml.etree.cElementTree import ElementTree" line:
>
> wrar at wrars-comp ~/tmp $ cat 1.py
> from xml.etree.cElementTree import ElementTree
> wrar at wrars-comp ~/tmp $ pylint 1.py | grep E
> No config file found, using default configuration
> E:  1: No name 'etree' in module 'xml'

> It may be because of "modutils: locate modules in zip/egg archive", but I
> didn't try to investigate further. Also, on my other system (Debian sid)
> this regression isn't reproduced, so it can be some packaging error or
> just incompatibility.

hum strange. Could you :
$ python
>>> import xml.etree
>>> print xml.__path__
>>> print xml.etree.__path__
>>> print xml.etree.__file__

on both systems so we get a hint on the difference?

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the Python-Projects mailing list