Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ /Original Message/ ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ *Original Message* ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
ok and what's configured as execution command? (Click on Build, Set Build Commands)
Cheers, Johannes
------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de mailto:johannes.lange@rwth-aachen.de>
Hi, how do you run python or what's your run-command? Regards, Johannes Lange ------------ /Original Message/ ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* users@lists.geany.org <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi, I have installed Geany in Windows 7 64b. When I run a Python program cmd window appears only for a little while. Any idea what is happening ? Thanks in advance. _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hello,
The execution command is python "%f"
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
ok and what's configured as execution command? (Click on Build, Set Build Commands)
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ *Original Message* ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Ok,if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output?
Normally it would look like <output here> Press any key to continue...
------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.org *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello,
The execution command is python "%f"
Regards.
2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de mailto:johannes.lange@rwth-aachen.de>
Hi, ok and what's configured as execution command? (Click on Build, Set Build Commands) Cheers, Johannes ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes, I mean when I click on the execute button inside Geany window. Best regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Hi, how do you run python or what's your run-command? Regards, Johannes Lange ------------ /Original Message/ ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* users@lists.geany.org <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi, I have installed Geany in Windows 7 64b. When I run a Python program cmd window appears only for a little while. Any idea what is happening ? Thanks in advance. _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Ok, if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output?
Normally it would look like
<output here> Press any key to continue...
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello,
The execution command is python "%f"
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
ok and what's configured as execution command? (Click on Build, Set Build Commands)
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ *Original Message* ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Ok, then maybe the execution just fails. Have you tried the script on a command line manually? As I come to think of it: on Windows in your execution command it should be python.exe, not just python. And then it could be, that it's not properly set in path, too.
So try on commandline first: python.exe <yourscript>.py
and if that does not work, do <path to>/python.exe <yourscript>.py
------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.org *Date:* Tue, 24 Sep 2013 11:28:02 +0200
Hi,
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
Regards.
2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de mailto:johannes.lange@rwth-aachen.de>
Ok,if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output? Normally it would look like <output here> Press any key to continue... ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello, The execution command is python "%f" Regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Hi, ok and what's configured as execution command? (Click on Build, Set Build Commands) Cheers, Johannes ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes, I mean when I click on the execute button inside Geany window. Best regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Hi, how do you run python or what's your run-command? Regards, Johannes Lange ------------ /Original Message/ ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* users@lists.geany.org <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi, I have installed Geany in Windows 7 64b. When I run a Python program cmd window appears only for a little while. Any idea what is happening ? Thanks in advance. _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
In commandline :
python.exe <path to><myscript>.py --> It works python <path to><myscript>.py --> It works
The path to Python directory already was included in PATH environment variable
I changed the Geany execution command from python "%f" to python.exe "%f" and the error still continues.
Regards,
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Ok, then maybe the execution just fails. Have you tried the script on a command line manually? As I come to think of it: on Windows in your execution command it should be python.exe, not just python. And then it could be, that it's not properly set in path, too.
So try on commandline first: python.exe <yourscript>.py
and if that does not work, do <path to>/python.exe <yourscript>.py
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 11:28:02 +0200
Hi,
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Ok, if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output?
Normally it would look like
<output here> Press any key to continue...
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello,
The execution command is python "%f"
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
ok and what's configured as execution command? (Click on Build, Set Build Commands)
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ *Original Message* ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
That's strange then... I don't know much about PATH in Windows and if it's correctly loaded by geany (but as it's a batch file, it should). Maybe you try <pathTo>/python.exe "%f" as command. If that doesn't work, it's some other issue I don't know.
Cheers, Johannes ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.org *Date:* Tue, 24 Sep 2013 14:16:54 +0200
Hi,
In commandline :
python.exe <path to><myscript>.py --> It works python <path to><myscript>.py --> It works
The path to Python directory already was included in PATH environment variable
I changed the Geany execution command from python "%f" to python.exe "%f" and the error still continues.
Regards,
2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de mailto:johannes.lange@rwth-aachen.de>
Ok, then maybe the execution just fails. Have you tried the script on a command line manually? As I come to think of it: on Windows in your execution command it should be python.exe, not just python. And then it could be, that it's not properly set in path, too. So try on commandline first: python.exe <yourscript>.py and if that does not work, do <path to>/python.exe <yourscript>.py ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 11:28:02 +0200
Hi, I mean the console window appear and disappear 0.1 second after and I can not see any output. I think the console window should remain open. The python program only has one print line ( print "Hello world" ). Regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Ok,if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output? Normally it would look like <output here> Press any key to continue... ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello, The execution command is python "%f" Regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Hi, ok and what's configured as execution command? (Click on Build, Set Build Commands) Cheers, Johannes ------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* Geany general discussion list <users@lists.geany.org> <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes, I mean when I click on the execute button inside Geany window. Best regards. 2013/9/24 Johannes Lange <johannes.lange@rwth-aachen.de <mailto:johannes.lange@rwth-aachen.de>> Hi, how do you run python or what's your run-command? Regards, Johannes Lange ------------ /Original Message/ ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM <jpmelian@gmail.com> <mailto:jpmelian@gmail.com> *To:* users@lists.geany.org <mailto:users@lists.geany.org> *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi, I have installed Geany in Windows 7 64b. When I run a Python program cmd window appears only for a little while. Any idea what is happening ? Thanks in advance. _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Thank you very much for your help.
Salu2.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
That's strange then... I don't know much about PATH in Windows and if it's correctly loaded by geany (but as it's a batch file, it should). Maybe you try <pathTo>/python.exe "%f" as command. If that doesn't work, it's some other issue I don't know.
Cheers, Johannes ------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 14:16:54 +0200
Hi,
In commandline :
python.exe <path to><myscript>.py --> It works python <path to><myscript>.py --> It works
The path to Python directory already was included in PATH environment variable
I changed the Geany execution command from python "%f" to python.exe "%f" and the error still continues.
Regards,
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Ok, then maybe the execution just fails. Have you tried the script on a command line manually? As I come to think of it: on Windows in your execution command it should be python.exe, not just python. And then it could be, that it's not properly set in path, too.
So try on commandline first: python.exe <yourscript>.py
and if that does not work, do <path to>/python.exe <yourscript>.py
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 11:28:02 +0200
Hi,
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Ok, if that works, your path should be set properly. What do you mean by "little while" exactly? Does it produce output?
Normally it would look like
<output here> Press any key to continue...
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 09:14:07 +0200
Hello,
The execution command is python "%f"
Regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
ok and what's configured as execution command? (Click on Build, Set Build Commands)
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Tue, 24 Sep 2013 08:30:06 +0200
Hi Johannes,
I mean when I click on the execute button inside Geany window.
Best regards.
2013/9/24 Johannes Lange johannes.lange@rwth-aachen.de
Hi,
how do you run python or what's your run-command?
Regards, Johannes Lange
------------ *Original Message* ------------ *Subject:* [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* users@lists.geany.org *Date:* Tue, 24 Sep 2013 08:02:44 +0200
Hi,
I have installed Geany in Windows 7 64b.
When I run a Python program cmd window appears only for a little while.
Any idea what is happening ?
Thanks in advance.
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
Hi,
The script Hello_world.py is located in C:\python_scripts. In this directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is : --------------------------------------------------- python "Hello_world.py"
pause del "%0"
pause ---------------------------------------------------
I think everything seem to be ok but the error persists.
Best regards.
2013/9/24 Matthew Brush mbrush@codebrainz.ca
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Did you try executing the batch file manually?
Cheers, Johannes
------------ /Original Message/ ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.org *Date:* Wed, 25 Sep 2013 09:56:00 +0200
Hi,
The script Hello_world.py is located in C:\python_scripts. In this directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is :
python "Hello_world.py"
pause del "%0"
pause
I think everything seem to be ok but the error persists.
Best regards.
2013/9/24 Matthew Brush <mbrush@codebrainz.ca mailto:mbrush@codebrainz.ca>
On 13-09-24 06:15 AM, JPM wrote: Hi, With the execution command <pathTo>/python.exe "%f" the error persists. As you say it is very weird. Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar. Just an idea. Cheers, Matthew Brush _______________________________________________ Users mailing list Users@lists.geany.org <mailto:Users@lists.geany.org> https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Yes I did. A cmd window appears and it does not disappear.
------------------------------------------------------------------------- C:\python_scripts>python "Hello_world.py" Hello World
C:\python_scripts>pause Presione una tecla para continuar . . . -------------------------------------------------------------------------
The bat file works properly outside Geany.
Regards.
2013/9/25 Johannes Lange johannes.lange@rwth-aachen.de
Did you try executing the batch file manually?
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Wed, 25 Sep 2013 09:56:00 +0200
Hi,
The script Hello_world.py is located in C:\python_scripts. In this directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is :
python "Hello_world.py"
pause del "%0"
pause
I think everything seem to be ok but the error persists.
Best regards.
2013/9/24 Matthew Brush mbrush@codebrainz.ca
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Are there any messages in the status bar after the terminal window closes, or any in help->debug messages?
Cheers Lex
On 25 September 2013 18:41, JPM jpmelian@gmail.com wrote:
Yes I did. A cmd window appears and it does not disappear.
C:\python_scripts>python "Hello_world.py" Hello World
C:\python_scripts>pause Presione una tecla para continuar . . .
The bat file works properly outside Geany.
Regards.
2013/9/25 Johannes Lange johannes.lange@rwth-aachen.de
Did you try executing the batch file manually?
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Wed, 25 Sep 2013 09:56:00 +0200
Hi,
The script Hello_world.py is located in C:\python_scripts. In this directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is :
python "Hello_world.py"
pause del "%0"
pause
I think everything seem to be ok but the error persists.
Best regards.
2013/9/24 Matthew Brush mbrush@codebrainz.ca
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Status bar :
15:48:32: Esto es Geany 1.23.1. 15:48:32: Archivo C:\Users\mainuser\python_scripts\hello.py abierto(1)
Debug messages :
15:48:32: Geany INFO : Geany 1.23.1, Spanish_Spain.1252 15:48:32: Geany INFO : GTK 2.16.6, GLib 2.20.5 15:48:32: Geany INFO : System data dir: C:\Program Files (x86)\Geany\data 15:48:32: Geany INFO : User config dir: C:\Users\mainuser\AppData\Roaming\geany 15:48:32: Geany INFO : System plugin path: C:\Program Files (x86)\Geany\lib 15:48:32: Geany INFO : Added filetype Cython (55). 15:48:32: Geany INFO : Added filetype Genie (56). 15:48:32: Geany INFO : Added filetype Go (57). 15:48:32: Geany INFO : Added filetype Scala (58). 15:48:32: Geany INFO : C:\Users\mainuser\python_scripts\hello.py : Python (UTF-8) 15:48:32: Geany INFO : Loaded C:\Program Files (x86)\Geany\data\python.tags (Python), 5965 tag(s)
Regards.
2013/9/25 Lex Trotman elextr@gmail.com
Are there any messages in the status bar after the terminal window closes, or any in help->debug messages?
Cheers Lex
On 25 September 2013 18:41, JPM jpmelian@gmail.com wrote:
Yes I did. A cmd window appears and it does not disappear.
C:\python_scripts>python "Hello_world.py" Hello World
C:\python_scripts>pause Presione una tecla para continuar . . .
The bat file works properly outside Geany.
Regards.
2013/9/25 Johannes Lange johannes.lange@rwth-aachen.de
Did you try executing the batch file manually?
Cheers, Johannes
------------ *Original Message* ------------ *Subject:* Re: [Geany-Users] cmd window problem *From:* JPM jpmelian@gmail.com jpmelian@gmail.com *To:* Geany general discussion list users@lists.geany.orgusers@lists.geany.org *Date:* Wed, 25 Sep 2013 09:56:00 +0200
Hi,
The script Hello_world.py is located in C:\python_scripts. In this directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is :
python "Hello_world.py"
pause del "%0"
pause
I think everything seem to be ok but the error persists.
Best regards.
2013/9/24 Matthew Brush mbrush@codebrainz.ca
On 13-09-24 06:15 AM, JPM wrote:
Hi,
With the execution command <pathTo>/python.exe "%f" the error persists.
As you say it is very weird.
Where is your script located? I think Geany writes the runner script to the same directory as the script, which may not work as expected if the file is in some weird place like a directory you don't have proper permissions in (ex. outside of your home folder), a shared drive, a mounted FTP drive, etc. When I try to Execute such a script with Geany it places an error message in the Status tab and the status bar.
Just an idea.
Cheers, Matthew Brush
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing listUsers@lists.geany.orghttps://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 13-09-25 12:56 AM, JPM wrote:
Hi,
The script Hello_world.py is located in C:\python_scripts. In this
Could you try moving Hello_world.py into your home directory, like:
C:\Users\You\Anywhere below here or C:\Documents and Settings\You\Anywhere below here
directory there are three files : Hello_world.py , Hello_world.pyc and geany_run_script.bat.
The bat file content is : [...]
I think everything seem to be ok but the error persists.
Are you using the Geany 1.23.1 with GTK+ bundle from here? http://download.geany.org/geany-1.23.1_setup.exe
Or have installed own GTK+/GLib and using this here? http://download.geany.org/geany-1.23.1_nogtk_setup.exe
P.S. You can get the versions of GTK/GLib using Help->Debug Messages menu item.
Cheers, Matthew Brush
Hi,
I have done what you suggest without any success.
I am using Geany 1.23.1 with GTK+ bundle from http://www.geany.org/Download/Releases
Versions form help menu : Geany 1.23.1, Spanish_Spain.1252 GTK 2.16.6, GLib 2.20.5
Regards.
2013/9/25 Matthew Brush mbrush@codebrainz.ca
On 13-09-25 12:56 AM, JPM wrote:
Hi,
The script Hello_world.py is located in C:\python_scripts. In this
Could you try moving Hello_world.py into your home directory, like:
C:\Users\You\Anywhere below here or C:\Documents and Settings\You\Anywhere below here
directory there are three files : Hello_world.py , Hello_world.pyc
and geany_run_script.bat.
The bat file content is : [...]
I think everything seem to be ok but the error persists.
Are you using the Geany 1.23.1 with GTK+ bundle from here? http://download.geany.org/**geany-1.23.1_setup.exehttp://download.geany.org/geany-1.23.1_setup.exe
Or have installed own GTK+/GLib and using this here? http://download.geany.org/**geany-1.23.1_nogtk_setup.exehttp://download.geany.org/geany-1.23.1_nogtk_setup.exe
P.S. You can get the versions of GTK/GLib using Help->Debug Messages menu item.
Cheers, Matthew Brush ______________________________**_________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users
On Tue, Sep 24, 2013 at 5:28 AM, JPM jpmelian@gmail.com wrote:
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
I don't have time at the moment to test things out with Geany (it's not my usual editor), but I do have a suggestion:
One thing to try, to keep a Python window open that is not staying open by other means, is to add an input statement at the end of your program. If you're using Python 2, it would be a raw_input() statement; if using Python 3, just input().
John
On 24 September 2013 21:38, John Yeung gallium.arsenide@gmail.com wrote:
On Tue, Sep 24, 2013 at 5:28 AM, JPM jpmelian@gmail.com wrote:
I mean the console window appear and disappear 0.1 second after and I can not see any output.
I think the console window should remain open.
The python program only has one print line ( print "Hello world" ).
I don't have time at the moment to test things out with Geany (it's not my usual editor), but I do have a suggestion:
One thing to try, to keep a Python window open that is not staying open by other means, is to add an input statement at the end of your program. If you're using Python 2, it would be a raw_input() statement; if using Python 3, just input().
The python command is actually run by a .bat script which has a pause after the python command, so you shouldn't need anything in the program if the python command runs. It sounds more like as Johannes said, the command is probably python.exe or some other error is preventing it finding python, so the bat file is exiting immediately without doing the pause.
Cheers Lex
John _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Tue, Sep 24, 2013 at 7:46 AM, Lex Trotman elextr@gmail.com wrote:
The python command is actually run by a .bat script which has a pause after the python command, so you shouldn't need anything in the program if the python command runs.
Where is this .bat script? Or is it generated from scratch for every run?
John