New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geany not picking up Python on Raspberry Pi 3 #1624
Comments
How are you starting Geany? |
I'm using Rasbian. I open the start menu, select Programming, then select Geany from the list |
Ok, starting from the menu likely does not set your environment variables correctly because it runs Geany without a shell so |
I opened Terminal and typed in geany, then the Geany program opened up with the two python files I had written before. When I tried running them, I got the same error. For convenience, I took a screenshot and I'm going to upload it here. It shows the original terminal (ignore the $$ symbols, I typed them on accident), the "geany_run_script_XXXXXX.sh" terminal window that pops up when I execute the code, and the Set Build Commands for reference. |
Ok, so what is your |
could you give use the debugging messages that can be found in Help → Debug messages after trying to run the script also? But @elextr is likely to have the right question and your terminal/terminal command isn't properly set up |
Or its set to one of the terminal programs that won't run commands properly. |
elextr, b4n,
|
@sher85 and which terminal application actually opens? Is it Konsole, or something similar? try setting it to OK it's probably rather lxterminal, but it might have the same issue -- namely that it's not following the xterm command-line syntax. |
@sher85 Probably best to configure Geany to use a specific terminal so you know what its running. |
switching it from x-terminal-emulator to xterm did not work, instead of a terminal pop-up window I got: The terminal I use is the one that came with the Pi, when I hover over it its labeled "Terminal". Its the 4th icon on the top left corner of my screenshot from before. |
As @b4n noted, do you have Note that nobody here has Raspian, you have to tell us everything, so "hover over 4th icon" is not very helpful :) |
@sher85 can you go into the other terminal and look in |
FWIW apparently |
@codebrainz The terminal I was using at the beginning of this thread was LXTerminal and since I have switched to Xterm which, along changing the terminal command, resolved the issue for me. @b4n unfortunately changing it to |
@sher85 ok good to know. did you make a typo there missing the trailing quote on the lxterminal command? FWIW, lxterminal works fine here too with python or python3, Ubuntu 16.04 |
@codebrainz I tried it on a second RPI that I have and had the same results with both codes: LXTerminal (no go) and with Xterm (worked! after installing xterm on it) |
Writing my first Hello World code which runs perfectly on Terminal, however, on geany upon pressing the execute button a terminal screen pops up with the title geany_run_script_XXXXXX.sh (XXXXXX is a variation of numbers and letters, each time different. Currently T7NX7Y) and remains blank with no code running.
My Build Commands are set to:
Compile -----> /usr/bin/python3 -m py_compile "%f"
Execute -----> /usr/bin/python3 "%f"
What is preventing geany from running my code? It works just fine when ran from Terminal.
The text was updated successfully, but these errors were encountered: