[Twisted-Python] twistedchecker TypeError: modifiedBlankLines() takes exactly 6 arguments (7 given)
![](https://secure.gravatar.com/avatar/d57bac257873fa3c0993069a9cde47a5.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d57bac257873fa3c0993069a9cde47a5.jpg?s=120&d=mm&r=g)
Am Sonntag, 28. September 2014, 17:15:37 schrieb Glyph:
How did you install twistedchecker?
installing is not even needed: git clone https://github.com/twisted/twistedchecker cd twistedchecker ~/src/Twisted/bin/trial twistedchecker trial being the latest from twisted svn trunk, I get the same error pylint --version No config file found, using default configuration pylint 0.26.0, astng 0.24.3, common 0.61.0 Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] -- Wolfgang
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Sep 28, 2014, at 11:16 PM, Wolfgang Rohdewald <wolfgang.kde@rohdewald.de> wrote:
Hmm. It seems as though twistedchecker does not itself have continuous integration set up, so I don't have any test results to look at. It seems to be working on our buildbots (for now, at least) but I'm not sure why. This week I will try to get <https://github.com/twisted/twistedchecker/pull/71/files> merged, among other things. -glyph
![](https://secure.gravatar.com/avatar/d57bac257873fa3c0993069a9cde47a5.jpg?s=120&d=mm&r=g)
Am Montag, 29. September 2014, 00:07:33 schrieb Glyph:
This week I will try to get <https://github.com/twisted/twistedchecker/pull/71/files> merged,
which requires exactly pep8 1.5.1 Ubuntu 14.04 installs 1.4.6 I have the current 1.5.7 After downgrading to 1.4.6, twistedchecker works correctly. -- Wolfgang
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Sep 29, 2014, at 12:31 AM, Wolfgang Rohdewald <wolfgang.kde@rohdewald.de> wrote:
The issue is actually logilab-common, not pep8 itself; twistedchecker can deal with more recent pep8 versions. I fixed this on twistedchecker master: <https://github.com/twisted/twistedchecker/commit/a7aa84aaa190459cab77397b31e...> More exciting, though, is Adi Roiban's contribution of Travis-CI continuous integration: <https://github.com/twisted/twistedchecker/pull/71> so we can pick up the pace on twistedchecker improvements a bit. (The buildbot already runs straight out of Git, so improvements go live almost immediately.) -glyph
![](https://secure.gravatar.com/avatar/c194a4d2f2f8269aa052942e87985198.jpg?s=120&d=mm&r=g)
On 29 September 2014 20:11, Glyph Lefkowitz <glyph@twistedmatrix.com> wrote:
I got this similar error when I was using pep8 1.5.1 ... after upgrade to 1.5.6 all was fine. Please check latest setup.py from master... and the install line from travis.yml Cheers! -- Adi Roiban
![](https://secure.gravatar.com/avatar/d57bac257873fa3c0993069a9cde47a5.jpg?s=120&d=mm&r=g)
Am Sonntag, 28. September 2014, 17:15:37 schrieb Glyph:
How did you install twistedchecker?
installing is not even needed: git clone https://github.com/twisted/twistedchecker cd twistedchecker ~/src/Twisted/bin/trial twistedchecker trial being the latest from twisted svn trunk, I get the same error pylint --version No config file found, using default configuration pylint 0.26.0, astng 0.24.3, common 0.61.0 Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] -- Wolfgang
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Sep 28, 2014, at 11:16 PM, Wolfgang Rohdewald <wolfgang.kde@rohdewald.de> wrote:
Hmm. It seems as though twistedchecker does not itself have continuous integration set up, so I don't have any test results to look at. It seems to be working on our buildbots (for now, at least) but I'm not sure why. This week I will try to get <https://github.com/twisted/twistedchecker/pull/71/files> merged, among other things. -glyph
![](https://secure.gravatar.com/avatar/d57bac257873fa3c0993069a9cde47a5.jpg?s=120&d=mm&r=g)
Am Montag, 29. September 2014, 00:07:33 schrieb Glyph:
This week I will try to get <https://github.com/twisted/twistedchecker/pull/71/files> merged,
which requires exactly pep8 1.5.1 Ubuntu 14.04 installs 1.4.6 I have the current 1.5.7 After downgrading to 1.4.6, twistedchecker works correctly. -- Wolfgang
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Sep 29, 2014, at 12:31 AM, Wolfgang Rohdewald <wolfgang.kde@rohdewald.de> wrote:
The issue is actually logilab-common, not pep8 itself; twistedchecker can deal with more recent pep8 versions. I fixed this on twistedchecker master: <https://github.com/twisted/twistedchecker/commit/a7aa84aaa190459cab77397b31e...> More exciting, though, is Adi Roiban's contribution of Travis-CI continuous integration: <https://github.com/twisted/twistedchecker/pull/71> so we can pick up the pace on twistedchecker improvements a bit. (The buildbot already runs straight out of Git, so improvements go live almost immediately.) -glyph
![](https://secure.gravatar.com/avatar/c194a4d2f2f8269aa052942e87985198.jpg?s=120&d=mm&r=g)
On 29 September 2014 20:11, Glyph Lefkowitz <glyph@twistedmatrix.com> wrote:
I got this similar error when I was using pep8 1.5.1 ... after upgrade to 1.5.6 all was fine. Please check latest setup.py from master... and the install line from travis.yml Cheers! -- Adi Roiban
participants (4)
-
Adi Roiban
-
Glyph
-
Glyph Lefkowitz
-
Wolfgang Rohdewald