linter-flake8 icon indicating copy to clipboard operation
linter-flake8 copied to clipboard

Possible error with flake8 address

Open gerardpc opened this issue 4 years ago • 2 comments

I'm using the latest version of atom under Ubuntu 20 LTS. I have installed linter and linter-flake8, and previously installed flake 8 with pip3 install flake8 When I open a python project, however, Linter crashes and I get the following error.

error

My understanding is that linter is trying to run "/home/gerardpc/.local/lib/python3.8/site-packages/flake8" as a binary. However, this is actually a folder, the binary being in "/home/gerardpc/.local/bin/flake8".

Is my suspicion correct? And if that is the case, how can I change the path of the executable?

gerardpc avatar Sep 19 '20 10:09 gerardpc

Ok, I just saw that in the settings of linter-flake8 I can specify the path. I changed it to "/home/gerardpc/.local/bin/flake8" (which btw I obtained by running which flake8 on a terminal) and now everything seems to work fine. To the developers, please check why the default path detected by linter-flake8 is wrong. Thanks!

gerardpc avatar Sep 19 '20 10:09 gerardpc

@gerardpc, it will be fixed after following my steps in this link; Fix-Linter-flak8.

AI-Ahmed avatar Oct 15 '20 15:10 AI-Ahmed