开发者

pylint giving a number of errors with maximum recursion depth reached

Pylint gives me an error like this very frequently.

shabda@jazzy ~/uswaretech_uswaretechsite> pylint -e utpages/forms.py
No config file found, using default configuration
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.RuntimeError'> ignored

The logalib mailing list discusses it at http://lists.logilab.org/pipermail/python-projects/2009-March/001789.html , but its a old thread, so has anyone fiund an开发者_高级运维 error like this with Pylint, and found the root cause in ther code?


There's an open ticket about this bug. The bug report contains details about the cause.


This bug has been killed in the repository of logilab.astng (dependency of Pylint). You may want to update from source.

logilab-astng mercurial repository at http://www.logilab.org/cgi-bin/hgwebdir.cgi/logilab/astng

@Noufal Ibrahim: pylint tries very hard to to import your module. To my knowledge, it only does so for C extension, for which there is no Python code to analyze.


This has been fixed in logilab-astng 0.20 which is out for a year and half.

Upgrading to an earlier release of pylint and logilab-astng should fix the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜