[Python-projects] ZeroDivisionError with pylint
MATSUI Tetsushi
VED03370 at nifty.ne.jp
Sun May 11 23:28:21 CEST 2008
Hello,
I've told that pylint stops with ZeroDivisionError for one of the
files in my project. I haven't tried to minimize the test case,
but here is the traceback I get:
Traceback (most recent call last):
File "/Users/tetsushi/Gentoo/usr/bin/pylint", line 4, in <module>
lint.Run(sys.argv[1:])
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 901, in __init__
linter.check(args)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 492, in check
self.check_astng_module(astng, checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 602, in check_astng_module
if implements(checker, IASTNGChecker)])
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 619, in astng_events
self.astng_events(child, checkers, _reversed_checkers)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/lint.py", line 616, in astng_events
checker.visit(astng)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/utils.py", line 84, in visit
method(node)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/pylint/checkers/typecheck.py", line 167, in visit_assign
function_node = safe_infer(node.expr.node)
File "/Users/tetsushi/Gentoo//usr/lib/python2.5/site-packages/pylint/checkers/utils.py", line 44, in safe_infer
inferit.next()
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 298, in infer_getattr
for owner in self.expr.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/__init__.py", line 122, in _infer_stmts
for infered in stmt.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/__init__.py", line 122, in _infer_stmts
for infered in stmt.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 280, in infer_callfunc
for infered in callee.infer_call_result(self, context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 500, in infer_call_result_function
for infered in returnnode.value.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/__init__.py", line 122, in _infer_stmts
for infered in stmt.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/__init__.py", line 122, in _infer_stmts
for infered in stmt.infer(context):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 45, in wrapped
for res in _func(node, context, **kwargs):
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 454, in _infer_operator
value = impl(lhsvalue, rhsvalue)
File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/logilab/astng/inference.py", line 479, in <lambda>
return _infer_operator(self, context=context, impl=lambda a,b: a/b, meth='__div__')
ZeroDivisionError: integer division or modulo by zero
The file is elliptic.py in NZMATH-0.90.0 (downloadable at
http://download.sourceforge.net/nzmath/NZMATH-0.90.0.tar.gz).
The versions I'm using:
pylint 0.14
astng 0.17.2
logilab-common 0.31.0
Thank you in advance.
--
MATSUI "Fe2+" Tetsushi
More information about the Python-Projects
mailing list