-
Notifications
You must be signed in to change notification settings - Fork 619
python not found (program exited with code: 127) (program exited with code: 126) #4295
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
Comments
The python command can be set during the building of the installation. It would appear that your OS has not have the same value that your Geany install has. |
Soooo, I'm on my normal PC now, and out of interest, just installed Geany on this one and tried again - with 💯% exactly the same results! The (program exited with code: 126) was because again I forgot to save the file with a ".py" after the filename... But changed back to (program exited with code: 127) once I remembered to correct this. Again, the simple fix was as above: Again it worked! Also I was just perusing the Geany User Manual but couldn't find a list of program exit codes. Where might one find such a list? |
Neither 😁 Installation versions is you and the OS. You are doing something unusual, you need to find your Geany 2.0 The OS that builds the install software includes which python name, so your current one is likely
So users can set any command, again its not Geany specific.
Well, ummmm, there are errors for lots of stuff, all the libraries have heaps of bug content, for faults for Geany open it as an issue. But only issues that are about Geany, not data being absent or similar. Things not Geany problems etc for non-Geany (eg python) have nothing in Geany, just too many languages and compilers, and etc etc etc for their data to be in Geany, use the object's own info. |
As @elextr said, what Python command is set as default depends on the distribution at creating the binary package. You could create a bug report at Ubuntu so that they change the default command. I'm closing this as we cannot do much about this, we provide only the source code package. Just re-open if you disagree. |
Thanks for everyone's help on this. |
Hi,
Just installed lubuntu (Ubuntu 24.10) running LXQt V2.0.0 QT V6.6.2 on an old laptop to give to a kid so he can learn Python.
Then installed Geany Pryce, (built on or after 2024-03-31) Using GTK+ v3.24.43 and GLib v2.82.1 runtime libraries.
Opened it up and tried to run a quick Hello World in Python, but got this message:
First thing I worked out was that it needed a .py in the filename, which I manually added. (Still haven't worked out how to do this automatincally - which I believe is possible...) but then this still didn't fix the problem.
If I typed:
python3 Hello\ World.py
It worked fine!
Eventually I dicovered that if I changed the:
Build > Set Build Commands > Execute Command to
python3 "%f"
instead of
python "%f"
It worked!
I've created this as a New Issue as I almost just installed another IDE, but since the fix is so simple, it needs to be documented or fixed.
Thanks,
Rob.
The text was updated successfully, but these errors were encountered: