Email [Python-projects] Pylint 0.7 traceback

from
James Thompson <jamest at ajrs dot com>
subject
[Python-projects] Pylint 0.7 traceback
date
2005/08/10 21:56
I've managed to get pylint to perform a traceback when passing it one
of the files from our project.  I'm using the packages from the logilab debian 
repository

python2.3-pylint                  0.7.0-1
python-logilab-common     0.10.0-1 

If it helps, a copy of the GFBlock.py file that generates the traceback can be 
found at
http://www.gnuenterprise.org/cgi-bin/viewcvs.cgi/gnue/trunk/gnue-forms/src/GFObjects/?rev=7823

pylint 0.5.0 can process the file without errors.

Thanks,
James

pylint GFBlock.py
************* Module GFBlock
C0301:113: Line too long (101/80)
C0301:117: Line too long (93/80)
C0301:121: Line too long (101/80)
C0301:123: Line too long (85/80)
C0301:125: Line too long (86/80)
C0301:127: Line too long (90/80)
C0301:129: Line too long (94/80)
C0301:131: Line too long (81/80)
C0301:133: Line too long (90/80)
W0511:291: TODO: define a trigger for this
W0103:  0: Missing required attribute "__revision__"
W0403: 31: Relative import 'GFContainer'
R0902: 43:GFBlock: Too many instance attributes (34/7)
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in ?
    lint.Run(sys.argv[1:])
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 730, in 
__init__
    linter.check(args)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 410, in check
    self.check_file(filepath, modname, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 426, in 
check_file
    astng = self._check_file(filepath, modname, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 450, in 
_check_file
    self.check_astng_module(astng, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 497, in 
check_astng_module
    self.astng_events(astng, [checker for checker in checkers
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 514, in 
astng_events
    self.astng_events(child, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 514, in 
astng_events
    self.astng_events(child, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 514, in 
astng_events
    self.astng_events(child, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 514, in 
astng_events
    self.astng_events(child, checkers)
  File "/usr/lib/python2.3/site-packages/pylint/lint.py", line 511, in 
astng_events
    checker.visit(astng)
  File "/usr/lib/python2.3/site-packages/logilab/common/astng/utils.py", line 
94, in visit
    method(node)
  File "/usr/lib/python2.3/site-packages/pylint/checkers/classes.py", line 
197, in visit_function
    self._check_init(node)
  File "/usr/lib/python2.3/site-packages/pylint/checkers/classes.py", line 
369, in _check_init
    to_call, unresolved = self._ancestors_to_call(node, klass_node)
  File "/usr/lib/python2.3/site-packages/pylint/checkers/classes.py", line 
449, in _ancestors_to_call
    baseastng.get_method(method)
AttributeError: Module instance has no attribute 'get_method'
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


has reply