pylint 给出了达到最大递归深度的许多错误
Pylint 经常给我一个这样的错误。
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
logalib 邮件列表在 http://lists.logilab 中对此进行了讨论.org/pipermail/python-projects/2009-March/001789.html ,但它是一个旧线程,所以有人在 Pylint 中发现了这样的错误,并在代码中找到了根本原因吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个关于此错误的公开票。错误报告包含有关原因的详细信息。
There's an open ticket about this bug. The bug report contains details about the cause.
该错误已在 logilab.astng(Pylint 的依赖项)的存储库中被删除。您可能想从源更新。
logilab-astng Mercurial 存储库位于 http://www.logilab.org/ cgi-bin/hgwebdir.cgi/logilab/astng
@Noufal Ibrahim:pylint 非常努力地导入您的模块。据我所知,它只对 C 扩展这样做,没有可供分析的 Python 代码。
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.
这个问题已经在已经发布一年半的 logilab-astng 0.20 中得到修复。
升级到 pylint 和 logilab-astng 的早期版本应该可以解决该问题。
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.