Python Forum
"System cannot find path specified"(Geany)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"System cannot find path specified"(Geany)
#1
Exclamation 
I was happily using Geany to write Python 3.2 programs. I upgraded to Python 3.9 and Geany and now Geany doesn't run Python! Any help appreciated!
Thanks in advance.

THE SIMPLE PYTHON TEST PROGRAM I TYPED INTO GEANY AND THEN HIT THE EXECUTE BUTTON...
import sys
print("Hello")

THE ERROR MESSAGE I GET...
"The system cannot find the path specified.
(program exited with code: 3)
Press any key to continue . . ."

PS I also tried without import sys and I get the same error message

IF I RUN PYTHON DIRECTLY (VIA CMD) IT WORKS...
Microsoft Windows [Version 10.0.19042.804]
© 2020 Microsoft Corporation. All rights reserved.
C:\Users\PRIVATE>python
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("hello")
hello
>>>

MY SYSTEM...
W10 Professional
Python 3.9.2
Geany 1.37.1

MY ENVIROMENT VARIABLES...
User variables
Python C:\Program Files\Python39

System variables
Path C:\Program Files\Python39\Scripts\; C:\Program Files\Python39\
Python39 C:\Program Files\Python39

Oh for a world where they don't upgrade working programs! Smile
Reply
#2
Your Path look okay as python works from cmd,also look at Python 3.9/3.8 and pip installation under Windows
Go into Build ➡ Set Build Commands.
Then last Execute Commands
python "%f"
# Or not close window
python -i "%f"
Alternative for a better REPL install ptpython
Then in Geany:
ptpython -i "%f"
So if i push Execute button:
s = 'hello'
print(s) 
Then can continue to test and get better autocompletion and color.
[Image: wm8XYQ.png]

As a alternative look at on of the best Python editor out there VS Code.
VS Code from start
Reply
#3
(Mar-18-2021, 03:16 AM)kiwi99 Wrote: I was happily using Geany to write Python 3.2 programs. I upgraded to Python 3.9 and Geany and now Geany doesn't run Python! Any help appreciated!
Thanks in advance.

THE SIMPLE PYTHON TEST PROGRAM I TYPED INTO GEANY AND THEN HIT THE EXECUTE BUTTON...
import sys
print("Hello")

THE ERROR MESSAGE I GET...
"The system cannot find the path specified.
(program exited with code: 3)
Press any key to continue . . ."

...

Oh for a world where they don't upgrade working programs! Smile

In desperation I uninstalled geany 1.37.1 and reinstalled geany 1.29 and, guess what, geany now runs my python 3.9!
Smile Big Grin

PS: The set build commands are now...
Python command
python -m py_compile "%f"
Execute command
python "%f"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 635 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 9,764 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  How could i change the python interpreter path of os.system() 12019202386 2 1,111 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  len() function, numbers doesn't work with Geany Editor Penguin827 3 1,467 May-08-2020, 04:08 AM
Last Post: buran
Question Difference between Python's os.system and Perl's system command Agile741 13 3,205 Dec-02-2019, 04:41 PM
Last Post: Agile741
  [split] FileNotFoundError...System cannot find the path specified powerrocker 1 1,148 Oct-03-2019, 09:09 AM
Last Post: buran
  FileNotFoundError...System cannot find the path specified alex9745 28 15,101 Jul-23-2019, 05:14 AM
Last Post: alex9745
  Geany Configuration twallace51 0 3,087 Apr-21-2019, 02:20 PM
Last Post: twallace51
  Cannot add dot executable to system path bobsmith76 2 2,774 Mar-05-2019, 03:17 PM
Last Post: bobsmith76
  How to ignore - ERROR: The system was unable to find the specified registry key or va asheru93 9 4,319 Feb-04-2019, 06:35 AM
Last Post: asheru93

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020