I can't get Geany to execute a Python program under Windows. I have installed the full Geany Windows version 0.11 with the included GTK runtime. When I try and execute a python script, I get the following:-
Process failed (Failed to execute helper program (No such file or directory) Failed to execute the terminal program
The terminal command is set to the following in tools-preferences
C:\WINDOWS\system32\cmd.exe
Any thoughts on what's wrong here?
On 08/16/2007 01:03:58 AM, Gnipper wrote:
I can't get Geany to execute a Python program under Windows. I have installed the full Geany Windows version 0.11 with the included GTK runtime. When I try and execute a python script, I get the following:-
Process failed (Failed to execute helper program (No such file or directory) Failed to execute the terminal program
The terminal command is set to the following in tools-preferences
C:\WINDOWS\system32\cmd.exe
Any thoughts on what's wrong here?
I'm not sure. What's the execute command set to - see Build->Set Includes & Arguments (when a python document is open).
On my system it's: python "%f"
Maybe python isn't in your $PATH?
Regards, Nick
I checked the execute command and that's the same as yours. I'm pretty sure my Python paths are set up correctly as I can run Python from the command line. It seems to be a problem with not being able to start the Windows command shell. Do I need Cygwin or something installed? Does Geany produce a log output?
On 17/08/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
I'm not sure. What's the execute command set to - see Build->Set Includes & Arguments (when a python document is open).
On my system it's: python "%f"
Maybe python isn't in your $PATH?
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 08/16/2007 01:03:58 AM, Gnipper wrote:
I can't get Geany to execute a Python program under Windows. I have installed the full Geany Windows version 0.11 with the included GTK runtime. When I try and execute a python script, I get the following:-
Process failed (Failed to execute helper program (No such file or directory) Failed to execute the terminal program
The terminal command is set to the following in tools-preferences
C:\WINDOWS\system32\cmd.exe
Any thoughts on what's wrong here?
On 08/21/2007 10:58:49 PM, Gnipper wrote:
I checked the execute command and that's the same as yours. I'm pretty sure my Python paths are set up correctly as I can run Python from the command line. It seems to be a problem with not being able to start the Windows command shell. Do I need Cygwin or something installed? Does Geany produce a log output?
I've checked the source code and I think it's not a problem with python. The windows shell is supported. Geany has a debug option, -d. You could try running with that flag, but it might not help much in this case.
Currently, Geany creates a run script (geany_run_script.bat) in the current directory of the current file. From the error message in your first mail it seems the script did get created, but then launching the shell fails for some reason.
Is the 'Process failed' line exactly what you get - there seems to be a missing closing bracket?
[...]
On 08/16/2007 01:03:58 AM, Gnipper wrote:
I can't get Geany to execute a Python program under Windows. I
have
installed the full Geany Windows version 0.11 with the included
GTK
runtime. When I try and execute a python script, I get the following:-
Process failed (Failed to execute helper program (No such file or directory) Failed to execute the terminal program
The terminal command is set to the following in tools-preferences
C:\WINDOWS\system32\cmd.exe
Any thoughts on what's wrong here?
Regards, Nick
That's interesting. I can't find geany_run_script.bat or any other .bat files anywhere in my working directories, 'Documents and Settings' or 'Program Files\Geany' folders, so this could well be the problem? Unless it gets created/deleted on the fly.
Yes, there is a closing bracket missing in the error messages - my typo.
I appreciate your help Nick.
On 23/08/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 08/21/2007 10:58:49 PM, Gnipper wrote:
I checked the execute command and that's the same as yours. I'm pretty sure my Python paths are set up correctly as I can run Python from the command line. It seems to be a problem with not being able to start the Windows command shell. Do I need Cygwin or something installed? Does Geany produce a log output?
I've checked the source code and I think it's not a problem with python. The windows shell is supported. Geany has a debug option, -d. You could try running with that flag, but it might not help much in this case.
Currently, Geany creates a run script (geany_run_script.bat) in the current directory of the current file. From the error message in your first mail it seems the script did get created, but then launching the shell fails for some reason.
Is the 'Process failed' line exactly what you get - there seems to be a missing closing bracket?
[...]
On 08/16/2007 01:03:58 AM, Gnipper wrote:
I can't get Geany to execute a Python program under Windows. I
have
installed the full Geany Windows version 0.11 with the included
GTK
runtime. When I try and execute a python script, I get the following:-
Process failed (Failed to execute helper program (No such file or directory) Failed to execute the terminal program
The terminal command is set to the following in tools-preferences
C:\WINDOWS\system32\cmd.exe
Any thoughts on what's wrong here?
Regards, Nick
Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 23 Aug 2007 13:00:51 +1200, Gnipper gnipper@gmail.com wrote:
That's interesting. I can't find geany_run_script.bat or any other .bat files anywhere in my working directories, 'Documents and Settings' or 'Program Files\Geany' folders, so this could well be the problem? Unless it gets created/deleted on the fly.
geany_run_script.bat is created on the fly when executing the current file. In case the terminal emulator(cmd.exe in your case) was started succesfully and ran the script, the script deletes itself. The script itself is located in the same directory as the file you want to execute.
Regards, Enrico