Page MenuHomePhabricator

flake8 v3 is incompatible with many v2 plugins and is not stable
Closed, ResolvedPublic

Description

One of many problems:

Flake8 failed to load plugin "T80" due to No module named engine

12:22:18 flake8 runtests: PYTHONHASHSEED='1675780105'
12:22:18 flake8 runtests: commands[0] | flake8 --version
12:22:18   /home/jenkins/workspace/tox-jessie$ /home/jenkins/workspace/tox-jessie/.tox/flake8/bin/flake8 --version 
12:22:18 Traceback (most recent call last):
12:22:18   File ".tox/flake8/bin/flake8", line 11, in <module>
12:22:18     sys.exit(main())
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/cli.py", line 16, in main
12:22:18     app.run(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 299, in run
12:22:18     self._run(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 285, in _run
12:22:18     self.initialize(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 275, in initialize
12:22:18     self.find_plugins()
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 143, in find_plugins
12:22:18     self.check_plugins.load_plugins()
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 369, in load_plugins
12:22:18     plugins = list(self.manager.map(load_plugin))
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 261, in map
12:22:18     yield func(self.plugins[name], *args, **kwargs)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 367, in load_plugin
12:22:18     return plugin.load_plugin()
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 167, in load_plugin
12:22:18     raise failed_to_load
12:22:18 flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "T80" due to No module named engine.
12:22:18 ERROR: InvocationError: '/home/jenkins/workspace/tox-jessie/.tox/flake8/bin/flake8 --version'
12:22:18 flake8 runtests: commands[1] | flake8 --doctests
12:22:18   /home/jenkins/workspace/tox-jessie$ /home/jenkins/workspace/tox-jessie/.tox/flake8/bin/flake8 --doctests 
12:22:18 Traceback (most recent call last):
12:22:18   File ".tox/flake8/bin/flake8", line 11, in <module>
12:22:18     sys.exit(main())
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/cli.py", line 16, in main
12:22:18     app.run(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 299, in run
12:22:18     self._run(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 285, in _run
12:22:18     self.initialize(argv)
12:22:18   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 275, in initialize
12:22:18     self.find_plugins()
12:22:19   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 143, in find_plugins
12:22:19     self.check_plugins.load_plugins()
12:22:19   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 369, in load_plugins
12:22:19     plugins = list(self.manager.map(load_plugin))
12:22:19   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 261, in map
12:22:19     yield func(self.plugins[name], *args, **kwargs)
12:22:19   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 367, in load_plugin
12:22:19     return plugin.load_plugin()
12:22:19   File "/home/jenkins/workspace/tox-jessie/.tox/flake8/local/lib/python2.7/site-packages/flake8/plugins/manager.py", line 167, in load_plugin
12:22:19     raise failed_to_load
12:22:19 flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "T80" due to No module named engine.
12:22:19 ERROR: InvocationError: '/home/jenkins/workspace/tox-jessie/.tox/flake8/bin/flake8 --doctests'

Event Timeline

Xqt triaged this task as Unbreak Now! priority.Jul 25 2016, 12:28 PM

flake8 v3 is a rewrite, and not backwards compatible, and is not yet stable. https://gitlab.com/pycqa/flake8/issues/149 is a list of broken plugins.

jayvdb renamed this task from Flake8 failed to load plugin "T80" due to No module named engine to flake8 v3 is incompatible with many v2 plugins and is not stable.Jul 26 2016, 3:18 AM
jayvdb updated the task description. (Show Details)

Change 301057 had a related patch set uploaded (by John Vandenberg):
flake8 v3 is not stable

https://gerrit.wikimedia.org/r/301057

And flake8 v3 is not compatible with Python 2.6

$ git grep OrderedDict
src/flake8/utils.py:        parameters = collections.OrderedDict([
src/flake8/utils.py:        parameters = collections.OrderedDict([

Change 301057 merged by jenkins-bot:
flake8 v3 is not stable

https://gerrit.wikimedia.org/r/301057

Xqt assigned this task to jayvdb.