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 is installed via my package manager (pacman) and is in my path

me@there ~/ % which flake8                                           
/usr/bin/flake8

But linter-flake8 tells me

Failed to spawn command /usr/bin/flake8. Make sure /usr/bin/flake8 is installed and on your PATH

I already set the executable Directory in ~/.atom/config.cson. Atom tells me

/usr/share/atom/resources/app/src/buffered-process.js:104 Uncaught BufferedProcessError: Failed to spawn command `/usr/bin/flake8`. Make sure `/usr/bin/flake8` is installed and on your PATH

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:37 (11 by maintainers)

github_iconTop GitHub Comments

19reactions
makeworld-the-better-onecommented, May 19, 2017

I had this problem, except I couldn’t find flake8 in my /usr/bin When you install packages from pip that also install command line tools, you must use sudo -H. Uninstall flake8, and then install it again: sudo -H pip install flake8 . Use pip3 for python3.

2reactions
badraycommented, Mar 11, 2015

@max-orhai ok 😃, I think we are close to it. How looks like your Atom init script? To open it, select from menu Atom->Open Your Init Script

Does it looks like this?

process.env.PATH = ['/usr/local/bin/', process.env.PATH].join(':')

So @max-orhai @ScreenDriver @sadovnychyi please post yor init file, or just tell if adding ‘/usr/local/bin’ to nodejs paths did the trick.

EDIT: Im just sure this is it, I just found people that encounter same bug with different linters. It looks like Atom does not have access to $PATH variables - more info: https://github.com/AtomLinter/Linter/issues/150

EDIT2: And here to the core… https://github.com/atom/atom-shell/issues/550

Read more comments on GitHub >

github_iconTop Results From Across the Web

zsh: command not found: flake8 but flake8 is installed
The flake8 script isn't in your path. First figure out where it's installed: pip show -f flake8. You should see the install location, ......
Read more >
flake8: command not found after installing it with pip on arch ...
You can find out what your path is by running echo $PATH . The message indicates where it installed flake8, and that the...
Read more >
flake8 - command-not-found.com
Tool to check the style and quality of Python code. More information: <https://flake8.pycqa.org/>. Lint a file or directory recursively: flake8 path/to ...
Read more >
How do I call flake8 to work on my code? (Example) - Treehouse
I'm working on badpep8.py and can't seem to invoke flake8 as ... treehouse:~/workspace$ flake8 badpep8.py -bash: flake8: command not found ...
Read more >
flake8: command not found
flake8 : command not found · On Debian possible default full paths are: · Random error cloud:.
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