Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
Thanks for your response Matthew. I think I will just run from the CLI.I am still getting errors when running cmds via Geany. I did change it to an executable but that didn't work. Linux did not recognize it as a commandwhen launched using only the file name, even with the 'shebang' in the script. I tried your other idea about putting what works into the CLI into Geany but I still got "permission denied" error. Although I am not getting anything done, I am learning alot. : ) Well now on to see if I can get syntax highlighting working along with auto complete. Wish me luck. Thanks again. Joe McCarron
On Tuesday, May 22, 2018, 3:25:36 PM EDT, Matthew Brush mbrush@codebrainz.ca wrote:
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Or just simply make the Geany build command THE SAME as the command line.
On 23 May 2018 at 06:57, Joe McCarron via Users users@lists.geany.org wrote:
Thanks for your response Matthew. I think I will just run from the CLI. I am still getting errors when running cmds via Geany.
I did change it to an executable but that didn't work. Linux did not recognize it as a command when launched using only the file name, even with the 'shebang' in the script.
I tried your other idea about putting what works into the CLI into Geany but I still got "permission denied" error. Although I am not getting anything done, I am learning alot. : )
Well now on to see if I can get syntax highlighting working along with auto complete. Wish me luck. Thanks again.
Joe McCarron
On Tuesday, May 22, 2018, 3:25:36 PM EDT, Matthew Brush mbrush@codebrainz.ca wrote:
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
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
I tried that but I got "Invalid working directory" error.Without the %d/%f at least ran the python script but then erroredsince there wasn't a file to work on. Thanks
On Tuesday, May 22, 2018, 6:47:50 PM EDT, Lex Trotman elextr@gmail.com wrote:
Or just simply make the Geany build command THE SAME as the command line.
On 23 May 2018 at 06:57, Joe McCarron via Users users@lists.geany.org wrote:
Thanks for your response Matthew. I think I will just run from the CLI. I am still getting errors when running cmds via Geany.
I did change it to an executable but that didn't work. Linux did not recognize it as a command when launched using only the file name, even with the 'shebang' in the script.
I tried your other idea about putting what works into the CLI into Geany but I still got "permission denied" error. Although I am not getting anything done, I am learning alot. : )
Well now on to see if I can get syntax highlighting working along with auto complete. Wish me luck. Thanks again.
Joe McCarron
On Tuesday, May 22, 2018, 3:25:36 PM EDT, Matthew Brush mbrush@codebrainz.ca wrote:
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
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
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
Cheers Lex
On 23 May 2018 at 10:57, Joe McCarron via Users users@lists.geany.org wrote:
I tried that but I got "Invalid working directory" error. Without the %d/%f at least ran the python script but then errored since there wasn't a file to work on.
Thanks
On Tuesday, May 22, 2018, 6:47:50 PM EDT, Lex Trotman elextr@gmail.com wrote:
Or just simply make the Geany build command THE SAME as the command line.
On 23 May 2018 at 06:57, Joe McCarron via Users users@lists.geany.org wrote:
Thanks for your response Matthew. I think I will just run from the CLI. I am still getting errors when running cmds via Geany.
I did change it to an executable but that didn't work. Linux did not recognize it as a command when launched using only the file name, even with the 'shebang' in the script.
I tried your other idea about putting what works into the CLI into Geany but I still got "permission denied" error. Although I am not getting anything done, I am learning alot. : )
Well now on to see if I can get syntax highlighting working along with auto complete. Wish me luck. Thanks again.
Joe McCarron
On Tuesday, May 22, 2018, 3:25:36 PM EDT, Matthew Brush mbrush@codebrainz.ca wrote:
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
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
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command? has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relativeto my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :). yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives. so your saying move pythonbuild to my working directory, correct ?Ok, I will try that. So maybe the problem is the there is no way for the workingdirectory to get to reference the up stream directory ? as in its ok to drill down butnot up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geanypython home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
Cheers Lex
On 23 May 2018 at 10:57, Joe McCarron via Users users@lists.geany.org wrote:
I tried that but I got "Invalid working directory" error. Without the %d/%f at least ran the python script but then errored since there wasn't a file to work on.
Thanks
On Tuesday, May 22, 2018, 6:47:50 PM EDT, Lex Trotman elextr@gmail.com wrote:
Or just simply make the Geany build command THE SAME as the command line.
On 23 May 2018 at 06:57, Joe McCarron via Users users@lists.geany.org wrote:
Thanks for your response Matthew. I think I will just run from the CLI. I am still getting errors when running cmds via Geany.
I did change it to an executable but that didn't work. Linux did not recognize it as a command when launched using only the file name, even with the 'shebang' in the script.
I tried your other idea about putting what works into the CLI into Geany but I still got "permission denied" error. Although I am not getting anything done, I am learning alot. : )
Well now on to see if I can get syntax highlighting working along with auto complete. Wish me luck. Thanks again.
Joe McCarron
On Tuesday, May 22, 2018, 3:25:36 PM EDT, Matthew Brush mbrush@codebrainz.ca wrote:
On 2018-05-22 08:22 AM, Joe McCarron via Users wrote:
Hello folks,I am using Linux mint with Geany 1.27
I get this error when running a command from Build->Set Build Commands/tmp/geany_run_script_KH9HJZ.sh: 7: /tmp/geany_run_script_KH9HJZ.sh: /home/joe/pythonbuild.py: Permission denied when i run from the command line it works. Here is what I put on the command line.python pythonbuild.py dev/Arduino/sample/sample.ino
The set Build Command in Geany is: /home/joe/pythonbuild.py I get the erro above when this is exectuted from Geany It looks like Geany runs a script from the tmp directory to run my py script. I just switched from windows to linux so that could be part of my problem. thanksJoe
Hi,
You probably have to mark the script executable and put a "shebang" in it. Unlike Windows, Linux doesn't go by file extension, a script has to be made executable (ex `chmod +x yourscript.py` or from your file manager) and the first line tells which interpreter to use (ex. `#!/usr/bin/env python`).
Alternatively, you could just change your build command in Geany to run the script using Python like what you ran on the command line, so it doesn't need to be executable or have a shebang line. Just put `python /home/joe/pythonbuild.py` in the build command.
Regards, Matthew Brush
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
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
Lets go back to absolute basics, which file are you editing with Geany? the pythonbuild.py file or the .ino file? Is the pythonbuild.py file a tool you are trying to run that processes the .ino file?
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
On Tuesday, May 22, 2018, 10:44:45 PM EDT, Lex Trotman elextr@gmail.com wrote:
Lets go back to absolute basics, which file are you editing with Geany? the pythonbuild.py file or the .ino file? Is the pythonbuild.py file a tool you are trying to run that processes the .ino file?Yes, The pythonbuild.py file is the tool. The file i am working on in Geany is the *.ino file.So, the working dir is based on the *.ino file as that is opened in Geany and the pyfile is not.
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 23 May 2018 at 12:54, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 10:44:45 PM EDT, Lex Trotman elextr@gmail.com wrote:
Lets go back to absolute basics, which file are you editing with Geany? the pythonbuild.py file or the .ino file? Is the pythonbuild.py file a tool you are trying to run that processes the .ino file? Yes, The pythonbuild.py file is the tool. The file i am working on in Geany is the *.ino file. So, the working dir is based on the *.ino file as that is opened in Geany and the py file is not.
Ok, that removes some confusion.
So the command is `python /home/joe/pythonbuild.py %f` and nothing in the working directory column of the 'Set Build Commands' dialog.
What that does is it makes the tool part (the `python /home/joe/pythonbuild.py` part) absolute, so it doesn't depend on where it is run, and Geany will substitute the %f with the currently open filename and run the command in that file's directory.
Thats the normal way Geany is intended to be set up, commands are absolute (or found by PATH as python is) and the command is run local to the file you are editing. Since Geany will save the current file when you invoke a build command that makes it all "just work" :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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 Tuesday, May 22, 2018, 11:34:17 PM EDT, Lex Trotman elextr@gmail.com wrote:
On 23 May 2018 at 12:54, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 10:44:45 PM EDT, Lex Trotman elextr@gmail.com wrote:
Lets go back to absolute basics, which file are you editing with Geany? the pythonbuild.py file or the .ino file? Is the pythonbuild.py file a tool you are trying to run that processes the .ino file? Yes, The pythonbuild.py file is the tool. The file i am working on in Geany is the *.ino file. So, the working dir is based on the *.ino file as that is opened in Geany and the py file is not.
Ok, that removes some confusion.
So the command is `python /home/joe/pythonbuild.py %f` and nothing in the working directory column of the 'Set Build Commands' dialog.
The file i have open sets the %d & %f (directory and file) which is used as the working directory part. I moved the pythonbuild.py to the working directory exactlywhere the file is and I still got the invalid working directory error.but like you said it doenst matter as long as it finds the py file.
What that does is it makes the tool part (the `python /home/joe/pythonbuild.py` part) absolute, so it doesn't depend on where it is run, and Geany will substitute the %f with the currently open filename and run the command in that file's directory.
Thats the normal way Geany is intended to be set up, commands are absolute (or found by PATH as python is) and the command is run local to the file you are editing. Since Geany will save the current file when you invoke a build command that makes it all "just work" :) Yes, I now know how Geany works as I have been fighting this for a wholeday. I don't know what it doesnt like. I may just do another installation of it. I have another issue trying to create filetypes for *.ino files (arduino) but thatdoesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
I will start another topic though and not include it in this. Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
Yes, I now know how Geany works as I have been fighting this for a whole day. I don't know what it doesnt like. I may just do another installation of it.
I have another issue trying to create filetypes for *.ino files (arduino) but that doesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
What version of Geany are you using? The current release (1.33) comes with an Arduino filetype that .ino maps to.
I will start another topic though and not include it in this.
Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Well, thats what it was when Unix was first conceived :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
1.27 I think it came with mint. So I guess I should upgrade.Thanks
On Wednesday, May 23, 2018, 12:30:08 AM EDT, Lex Trotman elextr@gmail.com wrote:
Yes, I now know how Geany works as I have been fighting this for a whole day. I don't know what it doesnt like. I may just do another installation of it.
I have another issue trying to create filetypes for *.ino files (arduino) but that doesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
What version of Geany are you using? The current release (1.33) comes with an Arduino filetype that .ino maps to.
I will start another topic though and not include it in this.
Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Well, thats what it was when Unix was first conceived :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
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 23 May 2018 at 14:44, Joe McCarron via Users users@lists.geany.org wrote:
1.27 I think it came with mint. So I guess I should upgrade.
Yes, I'm afraid old versions are one downside of stable distros like Mint, on the other hand most of their stuff doesn't suffer from bleeding edge bugs.
Just be aware that both Debian and Ubuntu (the underlying distros that Mint is based on and where you would get your upgrade from) have switched to the GTK3 version of Geany for 1.33, might be better to stick to 1.32, it still has the Arduino filetype.
Thanks
On Wednesday, May 23, 2018, 12:30:08 AM EDT, Lex Trotman elextr@gmail.com wrote:
Yes, I now know how Geany works as I have been fighting this for a whole day. I don't know what it doesnt like. I may just do another installation of it.
I have another issue trying to create filetypes for *.ino files (arduino) but that doesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
What version of Geany are you using? The current release (1.33) comes with an Arduino filetype that .ino maps to.
I will start another topic though and not include it in this.
Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Well, thats what it was when Unix was first conceived :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
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
I just checked and it's still version 1.27 via the software manager. So since i havebeen a linux user for about a week. I have to find out if its acceptable to go outsidethe respository (none of that in windows) to get more up to date versions. But nowI am aware of linux also getting dependent software also. That's so cool. And linuxdownloads AND installs the software in the right place and I cant mess with them. Another cool thing.
On Wednesday, May 23, 2018, 12:58:57 AM EDT, Lex Trotman elextr@gmail.com wrote:
On 23 May 2018 at 14:44, Joe McCarron via Users users@lists.geany.org wrote:
1.27 I think it came with mint. So I guess I should upgrade.
Yes, I'm afraid old versions are one downside of stable distros like Mint, on the other hand most of their stuff doesn't suffer from bleeding edge bugs.
Just be aware that both Debian and Ubuntu (the underlying distros that Mint is based on and where you would get your upgrade from) have switched to the GTK3 version of Geany for 1.33, might be better to stick to 1.32, it still has the Arduino filetype.
Thanks
On Wednesday, May 23, 2018, 12:30:08 AM EDT, Lex Trotman elextr@gmail.com wrote:
Yes, I now know how Geany works as I have been fighting this for a whole day. I don't know what it doesnt like. I may just do another installation of it.
I have another issue trying to create filetypes for *.ino files (arduino) but that doesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
What version of Geany are you using? The current release (1.33) comes with an Arduino filetype that .ino maps to.
I will start another topic though and not include it in this.
Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Well, thats what it was when Unix was first conceived :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
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
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
So, finally got it to work. Changed my shebang from #!/usr/bin python to #!/usr/bin/python (without space) I was still getting an error for the working directory so i moved %d/%f into the command then it worked.Thanks for your help.
On Wednesday, May 23, 2018, 12:58:57 AM EDT, Lex Trotman elextr@gmail.com wrote:
On 23 May 2018 at 14:44, Joe McCarron via Users users@lists.geany.org wrote:
1.27 I think it came with mint. So I guess I should upgrade.
Yes, I'm afraid old versions are one downside of stable distros like Mint, on the other hand most of their stuff doesn't suffer from bleeding edge bugs.
Just be aware that both Debian and Ubuntu (the underlying distros that Mint is based on and where you would get your upgrade from) have switched to the GTK3 version of Geany for 1.33, might be better to stick to 1.32, it still has the Arduino filetype.
Thanks
On Wednesday, May 23, 2018, 12:30:08 AM EDT, Lex Trotman elextr@gmail.com wrote:
Yes, I now know how Geany works as I have been fighting this for a whole day. I don't know what it doesnt like. I may just do another installation of it.
I have another issue trying to create filetypes for *.ino files (arduino) but that doesnt seem to work. I have been ALL OVER the manual and I dont know what I am doing wrong.
What version of Geany are you using? The current release (1.33) comes with an Arduino filetype that .ino maps to.
I will start another topic though and not include it in this.
Thanks for your help. I had just installed linux and got rid of windows so thats another hurdle I am working with. Way different than Windows. Windows is like a personnal computer linux is like working at a terminal and there's a main frame somewhere on campus ; )
Well, thats what it was when Unix was first conceived :)
Cheers Lex
Cheers Lex
On 23 May 2018 at 12:01, Joe McCarron via Users users@lists.geany.org wrote:
On Tuesday, May 22, 2018, 9:34:41 PM EDT, Lex Trotman elextr@gmail.com wrote: pythonbuild.py is in /home/joe
What directory is 'pythonbuild.py' located in and what was the working directory when you ran the CLI command?
has always been in /home/joe I am running the CLI from there also the working directory is dev/Arduino/sample/sample.ino which is relative to my ~ location. The abs path of the working directory would be /home/joe/dev/Arduino/sample/sample.ino
If your command is 'python pythonbuild.py dev/Arduino/sample/sample.ino' then it must be executed in the directory that contains 'pythonbuild.py' since the path is given relative to the working directory (and so is 'dev/Arduino/sample/sample.ino' but we havn't gotten to it yet :).
yes, that is true
Geany commands (by default) run with a working directory that is the directory of the current file displayed in the edit area, you can change this in the "working directory" column of the "set build commands" dialog to make it a fixed location such as the directory where 'pythonbuild.py' lives.
so your saying move pythonbuild to my working directory, correct ? Ok, I will try that. So maybe the problem is the there is no way for the working directory to get to reference the up stream directory ? as in its ok to drill down but not up ?? I will try try moving the *.py file to the working directory.
Yes, so the working directory is just use %d%f so the whole thing in Geany python home/joe/pythonbuild.py %d/%f
but I get Invalid working directory "/home/joe/dev/Arduino/4X20OLED/4X20OLED.ino"
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
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
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Wednesday, May 23, 2018 06:34:19 PM Joe McCarron via Users wrote:
So, finally got it to work. Changed my shebang from #!/usr/bin python to #!/usr/bin/python (without space) I was still getting an error for the working directory so i moved %d/%f into the command then it worked.Thanks for your help.
I'm sorry, I'm drawing a blank (and google [linux bash %d] and man bash aren't helping) (probably a senior moment / minute / ??). What do %d and %f mean?
(And, for extra credit, is a space ever valid in a shebang?)
On 24/05/18 13:03, rhkramer@gmail.com wrote:
On Wednesday, May 23, 2018 06:34:19 PM Joe McCarron via Users wrote:
So, finally got it to work. Changed my shebang from #!/usr/bin python to #!/usr/bin/python (without space) I was still getting an error for the working directory so i moved %d/%f into the command then it worked.Thanks for your help.
I'm sorry, I'm drawing a blank (and google [linux bash %d] and man bash aren't helping) (probably a senior moment / minute / ??). What do %d and %f mean?
%d and %f are Geany specific symbols. They are well described in the geany manual: https://www.geany.org/manual/current/index.html
(And, for extra credit, is a space ever valid in a shebang?)
There is quite a nice article in Wikipedia on shebang - it defines the syntax of the shebang line. https://en.wikipedia.org/wiki/Shebang_(Unix)
I can appreciate your situation as you have just switched from Windows to Linux - I have done exactly that some years back. In my opinion one really does eventually have to get to grips with the command-line features.
The best sources for me are the gnu manuals obtained from https://www.gnu.org/. In particular, the bash and coreutils manuals are indispensable.
Geoff
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Thursday, May 24, 2018 10:28:28 AM Geoff Kaniuk wrote:
On 24/05/18 13:03, rhkramer@gmail.com wrote:
I'm sorry, I'm drawing a blank (and google [linux bash %d] and man bash aren't helping) (probably a senior moment / minute / ??). What do %d and %f mean?
%d and %f are Geany specific symbols. They are well described in the geany manual: https://www.geany.org/manual/current/index.html
(And, for extra credit, is a space ever valid in a shebang?)
There is quite a nice article in Wikipedia on shebang - it defines the syntax of the shebang line. https://en.wikipedia.org/wiki/Shebang_(Unix)
I can appreciate your situation as you have just switched from Windows to Linux - I have done exactly that some years back. In my opinion one really does eventually have to get to grips with the command-line features.
Thanks for the sympathetic reply, but I hate to admit that I actually started switching to Linux back in 2000. I gradually weaned myself off most Windows stuff over the next 1 to 3 years. So, it was truly a senior moment or similar.
regards, Randy Kramer
The best sources for me are the gnu manuals obtained from https://www.gnu.org/. In particular, the bash and coreutils manuals are indispensable.
Geoff, You mean running from the command line rather than inside Geany ?
On Thursday, May 24, 2018, 10:28:41 AM EDT, Geoff Kaniuk geoff@kaniuk.co.uk wrote:
On 24/05/18 13:03, rhkramer@gmail.com wrote:
On Wednesday, May 23, 2018 06:34:19 PM Joe McCarron via Users wrote:
So, finally got it to work. Changed my shebang from #!/usr/bin python to #!/usr/bin/python (without space) I was still getting an error for the working directory so i moved %d/%f into the command then it worked.Thanks for your help.
I'm sorry, I'm drawing a blank (and google [linux bash %d] and man bash aren't helping) (probably a senior moment / minute / ??). What do %d and %f mean?
%d and %f are Geany specific symbols. They are well described in the geany manual: https://www.geany.org/manual/current/index.html
(And, for extra credit, is a space ever valid in a shebang?)
There is quite a nice article in Wikipedia on shebang - it defines the syntax of the shebang line. https://en.wikipedia.org/wiki/Shebang_(Unix)
I can appreciate your situation as you have just switched from Windows to Linux - I have done exactly that some years back. In my opinion one really does eventually have to get to grips with the command-line features.
The best sources for me are the gnu manuals obtained from https://www.gnu.org/. In particular, the bash and coreutils manuals are indispensable.
Geoff
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 24/05/18 21:43, Joe McCarron via Users wrote:
Geoff, You mean running from the command line rather than inside Geany ?
I run from command line and from Geany Terminal while developing C++ programs. In most cases I invoke a bash script. Some of my commands in the build menu also invoke scripts.