Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Pylint not found in spite of being installed and in shell PATH #30

Closed
mik01aj opened this issue Apr 14, 2015 · 21 comments
Closed

Pylint not found in spite of being installed and in shell PATH #30

mik01aj opened this issue Apr 14, 2015 · 21 comments
Labels

Comments

@mik01aj
Copy link

mik01aj commented Apr 14, 2015

I get a following error:

Failed to spawn command `pylint`. Make sure `pylint` is installed and on your PATH

I have pylint in /usr/local/bin/pylint and it works when called from both bash and zsh. When I check the process.env.PATH from the Atom console, it says /usr/bin:/bin:/usr/sbin:/sbin. I wonder whether this is a bug linter-pylint, in Atom or some issue related to OS X config.

@mik01aj
Copy link
Author

mik01aj commented Apr 14, 2015

Hmm, I have no idea why the path in Node was wrong, but I figured out I can give the path to pylint in settings. That worked. Thanks for the nice package! :)

@pmlamotte
Copy link

Pylint used to be working for me, but doesn't anymore oddly enough. Specifying it manually fixed it in my case as well. I'm on OS X Yosemite.

@abdonrd
Copy link

abdonrd commented Jun 26, 2015

I have the same problem.
Fixed writing "/usr/local/bin/pylint" in the "Settings > Executable".

@MatthewHerbst
Copy link

On OSX, I fixed this by doing:

sudo easy_install pip
pip install pylint

I would have thought the linter-pylint package would have covered that.

@JonnyCBB
Copy link

JonnyCBB commented Jul 8, 2015

I'm using Windows 8.1 and have Pylint install and in my path. If I open Atom from the terminal then everything is fine. However if I open atom from the Desktop Icon then Atom doesn't find Pylint :(

@SpainTrain
Copy link
Member

It appears that everyone on this thread has found a reasonable workaround. Closing, but open a new issue if you are having similar problems!

@MatthewHerbst
Copy link

@JonnyCBB that is a known issue with Atom - there is no ETA on the fix to my knowledge.

@SpainTrain
Copy link
Member

@MatthewHerbst do you have an upstream issue # handy (for folks that want to track it)? I could only find atom/atom#4126 which is marked as mac-specific. thx!

@MatthewHerbst
Copy link

@SpainTrain I should have added the Mac clarification - it's unclear to me if the issue is present on Windows or Linux environments. The ticket you found, in addition to atom/atom#6956, are the ones that people should be watching I think.

@mik01aj
Copy link
Author

mik01aj commented Aug 27, 2015

Thanks @MatthewHerbst. In particular, the workaround posted there by @mathiasringhof using launchctl seems to be the best one can get now.

@JonnyCBB
Copy link

Thanks @MatthewHerbst for letting me know.

@HologramOfMe
Copy link

I'd like to make @abdonrd work around a little clearer because it's simple but for noobs not easy to understand how to arrive at solution. This will fix the error in Atom at least

First open a terminal (Linux, Mac, Unixy systems). If pylint is installed then the following will tell you where it is. Use the output of this command to fix the problem.

which pylint

Copy the output, which for me was "/usr/bin/pylint".

Then, in Atom, open Preferences (Settings), go to the Packages Tab on the left and search for the linter-pylint package by typing "pylint" into the search field.

Click on the package or the small settings button for that package and scroll to the settings section for the linter-pylint package. The first setting is titled Executable. That's the one you want.

Paste the output of the previous command you ran in the terminal into that field. It should now work just fine and dandy.

@erikdstock
Copy link

This was an easy/obvious fix, but strange because it started out of nowhere after pylint was working in atom for me last week. I don't work much in python, either, so no big changes recently.

@Bosek
Copy link

Bosek commented Apr 4, 2016

+1
I have the same problem. JS linters work. Pylint doesn't. I can execute pylint from command line and location is in PATH. EDIT: linter-pep8 works without any problem too..
Windows 8.1 64bit

@Arcanemagus
Copy link
Member

@Bosek if you manually specify the path to pylint (where.exe pylint) does it work?

@Bosek
Copy link

Bosek commented Apr 4, 2016

C:\>where.exe pylint
C:\Python\Scripts\pylint.bat
C:\Python\Scripts\pylint.exe

I've also tried to specify executable path. No success.

@Arcanemagus
Copy link
Member

So if you enter C:\Python\Scripts\pylint.exe into the "Executable" setting you still don't get any output?

@Bosek
Copy link

Bosek commented Apr 4, 2016

Uncaught BufferedProcessError: Failed to spawn command 'C:\Python\Scripts\pylint.exe'. Make sure 'C:\Python\Scripts\pylint.exe' is installed and on your PATH

When I paste the path('C:\Python\Scripts\pylint.exe') into the windows console, it work of course. The path is good.

@mit4dev
Copy link

mit4dev commented May 30, 2017

Installing pylint with the following code

sudo pip install pylint

solved my problem on Ubuntu 16.04

@HappyDoggo
Copy link

pip install pylint
solved it on Windows 10 for me.

@Zoorken
Copy link

Zoorken commented Nov 9, 2018

Had the same problem today as Bosek has earlier described.
pip install pylint
Worked for me both on Windows 10 and Ubuntu for me in the terminal.

Did not work in Pycharm. Got same error as Bosek.

My solution
Using the path to the pylint executor in the virtual environment instead. This was unclear to me since the plugin suggested the wrong executor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests