question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flake8 build error in Travis

See original GitHub issue

Flake8 checks are currently failing with the following for all files:

.tox/flake8/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
.tox/flake8/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
.tox/flake8/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
.tox/flake8/lib/python3.8/site-packages/_pytest/runner.py:134: in pytest_runtest_call
    item.runtest()
.tox/flake8/lib/python3.8/site-packages/pytest_flake8.py:119: in runtest
    found_errors, out, err = call(
.tox/flake8/lib/python3.8/site-packages/py/_io/capture.py:150: in call
    res = func(*args, **kwargs)
.tox/flake8/lib/python3.8/site-packages/pytest_flake8.py:191: in check_file
    app.parse_preliminary_options_and_args(args)
E   AttributeError: 'Application' object has no attribute 'parse_preliminary_options_and_args'

Failed builds:

I suspect there might have been some change in a recent release of pytest-flake8, and pinning the version would solve the problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
novilunicommented, May 13, 2020

It seems fixed 🎉

Passing PR: https://github.com/scrapy/scrapy/pull/4572

1reaction
elacuestacommented, May 12, 2020

Yup, I was evaluating if we should pin flake8 or wait for an upstream fix to arrive. Nice work on the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Travis-CI: Do not fail build because of linter warnings
Adding --exit-zero flag to flake8 allows lint warnings/errors to be displayed without failing the Travis build.
Read more >
Fix travis-ci build on django-netjsongraph (flake8 error)
Check the failed travis build and understand why, then perform a development installation (see the README), run the same check that fails on...
Read more >
How to view detailed travis flake8 errors? - Plone Community
For the first question, you could run bin/code-analysis locally and you should see all flake8 errors. If you used plone.recipe.codeanalysis, it ...
Read more >
[1/1] Travis-CI: run flake8 on Python code - Patchwork
flake8 is a Python linter which is able to detect issues in Python code (syntax errors, undefined variables, etc.). It has been used...
Read more >
Sudden failures for the same commit despite no changes in ...
These errors don't make sense, since the exact same build succeeded a few days ago. I can only conclude that something in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found