[Twisted-Python] twistedchecker TypeError: modifiedBlankLines() takes exactly 6 arguments (7 given)

Glyph glyph at twistedmatrix.com
Sun Sep 28 18:15:37 MDT 2014


How did you install twistedchecker?

-glyph

On Sep 27, 2014, at 11:52 PM, Wolfgang Rohdewald <wolfgang.kde at rohdewald.de> wrote:

> I am getting this traceback on about every source file like:
> 
> 
> i5:~/ssdsrc/alt/Twisted/twisted/test (pb3) twistedchecker reflect_helper_ZDE.py
> ************* Module reflect_helper_ZDE
> W9001:  1,0: Missing copyright header
> W9002:  1,0: Missing a reference to test module in header
> C0103:  1,0: Invalid name "reflect_helper_ZDE" for type module (should match (([a-z_][a-z0-9_]*))$)
> W9208:  1,0: Missing docstring
> Traceback (most recent call last):
>  File "/usr/local/bin/twistedchecker", line 5, in <module>
>    pkg_resources.run_script('TwistedChecker==0.2.0', 'twistedchecker')
>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
>    self.require(requires)[0].run_script(script_name, ns)
>  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
>    execfile(script_filename, namespace, namespace)
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/EGG-INFO/scripts/twistedchecker", line 10, in <module>
>    Runner().run(sys.argv[1:])
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/twistedchecker/core/runner.py", line 325, in run
>    self.linter.check(args)
>  File "/usr/lib/python2.7/dist-packages/pylint-0.26.0-py2.7.egg/pylint/lint.py", line 542, in check
>    self.check_astng_module(astng, walker, rawcheckers)
>  File "/usr/lib/python2.7/dist-packages/pylint-0.26.0-py2.7.egg/pylint/lint.py", line 615, in check_astng_module
>    walker.walk(astng)
>  File "/usr/lib/python2.7/dist-packages/pylint-0.26.0-py2.7.egg/pylint/utils.py", line 553, in walk
>    cb(astng)
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/twistedchecker/checkers/pep8format.py", line 179, in visit_module
>    self._runPEP8Checker(node.file)
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/twistedchecker/checkers/pep8format.py", line 188, in _runPEP8Checker
>    recorder = PEP8WarningRecorder(file)
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/twistedchecker/checkers/pep8format.py", line 49, in __init__
>    self.run()
>  File "/usr/lib/python2.7/dist-packages/TwistedChecker-0.2.0-py2.7.egg/twistedchecker/checkers/pep8format.py", line 78, in run
>    pep8.Checker.check_all(self)
>  File "/usr/lib/python2.7/dist-packages/pep8-1.5.7-py2.7.egg/pep8.py", line 1445, in check_all
>    self.check_logical()
>  File "/usr/lib/python2.7/dist-packages/pep8-1.5.7-py2.7.egg/pep8.py", line 1338, in check_logical
>    for offset, text in self.run_check(check, argument_names) or ():
>  File "/usr/lib/python2.7/dist-packages/pep8-1.5.7-py2.7.egg/pep8.py", line 1278, in run_check
>    return check(*arguments)
> TypeError: modifiedBlankLines() takes exactly 6 arguments (7 given)
> 
> 
> -- 
> Wolfgang
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list