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 finds no issues

See original GitHub issue

Hi,

I experienced this error using atom and flake8 with OS El Capitan.

Error: spawn flake8 ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

I reinstalled atom and flake8 and add the executable path (/Applications/anaconda/bin/flake8) in flake8 settings. Now I do not see any error but flake8 does not find any issue in my code (not working).

Thanks for your help!

Romain

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gitanupamcommented, Feb 13, 2017

FYI: Got it working by following the suggestion here (I’m not using Ruby though).

Ran which flake8 and pasted the output in the field ‘Executable Path’ under the linter package’s ‘Settings’ in Atom.

0reactions
gitanupamcommented, Feb 13, 2017

Actually, I read the docs now and it seems I anyways needed to install flake8 along with linter-flake8 (sorry, I didnt realise that it was a pre-req and not the same thing). So I just did:

pip install flake8

But I still get the following error:

Error: spawn flake8 ENOENT
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Facing the same issue with pylint also (https://github.com/AtomLinter/linter-pylint/issues/195#issuecomment-279296987)

Read more comments on GitHub >

github_iconTop Results From Across the Web

python: flake8 cannot find non exising method - Stack Overflow
flake8 does not return an error for foo() method since it is not a 'list' method. Is this normal or do I need...
Read more >
Selecting and Ignoring Violations — flake8 6.0.0 documentation
By default, Flake8 has a list of error codes that it ignores. The list used by a version of Flake8 may be different...
Read more >
flake8-bugbear - PyPI
A plugin for flake8 finding likely bugs and design problems in your program. ... B002: Python does not support the unary prefix increment....
Read more >
flake8 Documentation - Read the Docs
Please do not open issues about this dependency to Flake8. ... any config files and use Flake8 as if there were no config...
Read more >
Detecting Problems Early | Intuitive Python by David Muller
In this section we'll talk about two tools for finding and ... flake8 detects, ahead of time, any Python source code that tries...
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