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

Sandro Tosi morph at debian.org
Tue Jun 16 08:53:55 UTC 2009


Hi Helmut,
thanks fro your report

On Tue, Jun 16, 2009 at 10:22, Helmut Grohne<helmut at subdivi.de> wrote:
> Package: pylint
> Version: 0.18.0-1
> Severity: important
>
> Somehow pylint does not work anymore.
>
> $ 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.

> It still somewhat works using python2.6 /usr/bin/pylint. Using python2.6
> shows tons of these though:
>
> Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <some python object> ignored

well, it might be that pylint/astng are not py2.6 ready, so this
errors are somewhat expected.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Python-apps-team mailing list