Hi! I'm new to this list so if this topic has been discussed before please point me to the relevant part of the archive.
I regularly use pylint in my project and apart from the 'maximum recursion depth' thing it works very well. But yesterday it suddenly throw an exception while evaluating a module, something which has not happend before. Unfortunatley I have no idea what in my file that makes it hickup, so I'd like some help with that. This is the traceback: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/bin/pylint", line 5, in <module> pkg_resources.run_script('pylint==0.20.0', 'pylint') File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 448, in run_script File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 1166, in run_script File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/EGG-INFO/scripts/pylint", line 4, in <module> lint.Run(sys.argv[1:]) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 885, in __init__ linter.check(args) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 496, in check self.check_astng_module(astng, checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 573, in check_astng_module if implements(checker, IASTNGChecker)]) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 590, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/lint.py", line 587, in astng_events checker.visit(astng) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/utils.py", line 307, in visit method(node) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/checkers/typecheck.py", line 238, in visit_callfunc called = safe_infer(node.func) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylint-0.20.0-py2.6.egg/pylint/checkers/utils.py", line 38, in safe_infer value = inferit.next() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 290, in wrapped for res in _func(node, context, **kwargs): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 314, in wrapper for node in func(*args, **kwargs): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/inference.py", line 241, in infer_getattr for owner in self.expr.infer(context): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 290, in wrapped for res in _func(node, context, **kwargs): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 117, in _infer_stmts for infered in stmt.infer(context): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 290, in wrapped for res in _func(node, context, **kwargs): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/inference.py", line 381, in infer_ass stmts = list(self.assigned_stmts(context=context)) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/bases.py", line 314, in wrapper for node in func(*args, **kwargs): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/protocols.py", line 192, in for_assigned_stmts for infered in _resolve_looppart(self.iter.infer(context), asspath, context): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/protocols.py", line 166, in _resolve_looppart assigned = stmt.getitem(index, context) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/logilab_astng-0.20.0-py2.6.egg/logilab/astng/node_classes.py", line 438, in getitem raise TypeError() TypeError If someone wants the python module that I tested I can send it to them, but I'd prefer not to clutter the mailing list with it. I was running 0.18 when it happend to me the first time, upgrading to 0.20 didn't help as you can see above. --Roland _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects