Elpy: Flymake giving error with folder with Makefile

Created on 29 Apr 2013  路  12Comments  路  Source: jorgenschaefer/elpy

Screenshot - 04292013 - 02:00:24 PM

Error

When i run the any *.py file it gives me popup information.

  Flymake: Failed to launch syntax check process 'pyflakes' with args (/home/rho/testpy/main_flymake.py): Searching for program: no such file or directory, pyflakes. Flymake will be switch OFF

How do i disable Flymake?

Yes I have install pyflakes both in py2 and py3 using.

  $ pip2 install --user pyflakes # for py2.7
  $ pip install --user pyflakes # for py3.3
Bug

All 12 comments

Is the program in your PATH / exec-path? If not, set python-check-command to the full path. Does it work then?

I'm not really sure.. how to check python-check-command

this is what it did in emacs

    M-x python-check RET
    Check command: pyflakes main.py

Return output:

  -*- mode: compilation; default-directory: "/mnt/Core/tkgui/src/angui/" -*-
  Compilation started at Mon Apr 29 14:19:39

  pyflakes main.py
  /bin/bash: pyflakes: command not found

M-x customize-variable RET python-check-command RET and set it to the full path of pyflakes :-)

finally

$ sudo pip install pyflakes

solved the problem!
thanx @jorgenschaefer for quick response.

Glad it works now, and you are welcome. Enjoy Elpy :-)

I had the same problem. It was because I'm installing packages to home directory (pip install --user pyflakes), which places binaries in ~/.local/bin, which is not in my $PATH.
Setting the variable helps.

I want to set full path to pyflackes. But I can't..
I follow the steps mentioned previously.
M-x customize-variable RET python-check-command RET
then click apply and save, emacs told me that `forward-sexp: Scan error: "Unbalanced parentheses"'
I was change the command directly.
screen shot :
screen shot 2015-01-29 at 12 56 58

I do not know what might be causing that error. Could you run M-x toggle-debug-on-error and hit "apply and save" again to see where the error happens? You can post the backtrace here.

Or rather, please do open a new issue for this, as it is unrelated to the issue you commented on. Thank you! :-)

I am sorry I made that mistake.
I was editing .emacs file at the same time. There was an unclosed parenthesis in my .emacs file.

No worries. Glad it works now, and please do not hesitate to open a new issue if you have any further problems!

thank to @jorgenschaefer: commented on Apr 29, 2013
M-x customize-variable RET python-check-command RET and set it to the full path of pyflakes :-)
it works

One more thanks from me. Below is my actual path, in case it helps anyone:
1) M-x customize-variable RET
2) python-check-command RET
3) in the text box after 'Python Check Command:' ent the exact path with pyflakes itself included of course: "/usr/local/bin/pylakes"
4) Click on "Apply and Save"
5) Open up a .py file and enjoy!

bildschirmfoto 2015-09-23 um 17 03 37

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

yitang picture yitang  路  4Comments

rthompsonj picture rthompsonj  路  6Comments

kapilsh picture kapilsh  路  3Comments

mfcabrera picture mfcabrera  路  6Comments