[Python-apps-team] Bug#533282: Bug#533282: pylint: AttributeError on program invocation

Helmut Grohne helmut at subdivi.de
Tue Jun 16 08:59:30 UTC 2009


Hi Sandro,

tahnks for your very quick reply!

On Tue, Jun 16, 2009 at 10:53:55AM +0200, Sandro Tosi wrote:
> On Tue, Jun 16, 2009 at 10:22, Helmut Grohne<helmut at subdivi.de> wrote:
> >
> > $ pylint test.py
> > Traceback (most recent call last):
> >  File "/usr/bin/pylint", line 3, in <module>
> >    from pylint import lint
> >  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 31, in <module>
> >    from pylint.checkers import utils
> >  File "/usr/lib/pymodules/python2.5/pylint/checkers/utils.py", line 29, in <module>
> >    FOR_NODE_TYPES = (astng.For, astng.Comprehension)
> > AttributeError: 'module' object has no attribute 'Comprehension'
> > $
> 
> could you please attach the test.py (or a minimal subset of it able to
> replicate the bug) since I tried pylint here on some source code and
> it works.

I did not include the file, because it did not appear to depend on the
file. Actually this error occurs during loading of pylint, so an empty
file and even no file at all will produce this error. I start to think
that this may be due to some sort of brokenness of my system.
Reinstalling pylint did however not help. Nor did reinstalling
python-logilab-astng.

Helmut





More information about the Python-apps-team mailing list