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
  Can't Find Path hatflyer 8 948 Oct-30-2023, 06:17 AM
Last Post: Gribouillis
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,490 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,148 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Difference between os.system("clear") and os.system("cls") chmsrohit 7 16,491 Jan-11-2021, 06:30 PM
Last Post: ykumar34
  How could i change the python interpreter path of os.system() 12019202386 2 2,484 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  len() function, numbers doesn't work with Geany Editor Penguin827 3 2,936 May-08-2020, 04:08 AM
Last Post: buran
Question Difference between Python's os.system and Perl's system command Agile741 13 6,648 Dec-02-2019, 04:41 PM
Last Post: Agile741
  [split] FileNotFoundError...System cannot find the path specified powerrocker 1 2,022 Oct-03-2019, 09:09 AM
Last Post: buran
  FileNotFoundError...System cannot find the path specified alex9745 28 21,135 Jul-23-2019, 05:14 AM
Last Post: alex9745
  Geany Configuration twallace51 0 4,452 Apr-21-2019, 02:20 PM
Last Post: twallace51

Forum Jump:

User Panel Messages

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