Posts: 5
Joined: Wed Jul 11, 2012 8:43 am

Geany failed to execute

Sat Jul 14, 2012 8:08 pm

Geany won't let me run the .py program and I get the error Failed to execute. Anyone else having this trouble if so is there a fix, I'm sure that it will be simple to fix but I am quite new to the pi because I recieved it 2 weeks ago..

Posts: 406
Joined: Sun Nov 20, 2011 11:37 am
Contact: Website

Re: Geany failed to execute

Sun Jul 15, 2012 8:12 pm

It could be that the build command in Geany is not set up correctly.
Choose "Build" from the top menu bar and then "Set Build Command".
Down near the bottom of the window there should be a bit labeled "execute".
Have a look at what is entered there.
Here's an example:

The "%f" refers to the current file, the "python" bit is the command that should launch python on your system.

If something there looks wrong, try opening a console in the directory where your program is stored and type:

Code: Select all

python filename.py
(Obviously, replace "filename.py" with the actual name of your file).
If this doesn't work, post back with what happened.
good luck,

Posts: 5
Joined: Wed Jul 11, 2012 8:43 am

Re: Geany failed to execute

Mon Jul 16, 2012 9:54 am

Thank you I will try that next time I boot up the pi

Return to “General programming discussion”