Python Forum
Script File Failure-Path Error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script File Failure-Path Error?
#1
I am new to Python and this forum (but not general programming) and looking for help in understanding how Python Interpreter interacts with PATH and PYTHONPATH environment variables in Windows 11 64bit environment.

I have successfuly installed python 3.11 in Windows 11 and created a a simple "hello_world.py" script file in a sub-folder under the main python installtion folder.

The script file runs correctly within IDLE and the CMD prompt as hello_world.py but am getting execution failures under other execution modes caused by durectory/file errors. See attached file for details.

The problem is my lack of a clear understanding of how python interacts with the Windows envionment (especially path variables) and searching other online sources and documentation has not resolved the problem.

Any guidance or pointers to definitive resources rekated to python and the Windows environment gratefully received.

Apologies for any forum rules I have inadvertently breached

Thank you - Jerry


.docx   Script File Failure & Python Path Error.docx (Size: 13.45 KB / Downloads: 120)
Larz60+ write Nov-27-2022, 04:11 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Messages In This Thread
Script File Failure-Path Error? - by jerryf - Nov-27-2022, 04:02 PM
RE: Script File Failure-Path Error? - by snippsat - Nov-27-2022, 05:08 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-27-2022, 08:19 PM
RE: Script File Failure-Path Error? - by snippsat - Nov-27-2022, 08:26 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-27-2022, 08:54 PM
RE: Script File Failure-Path Error? - by snippsat - Nov-27-2022, 09:14 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-27-2022, 11:00 PM
RE: Script File Failure-Path Error? - by snippsat - Nov-27-2022, 11:51 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-28-2022, 10:09 AM
RE: Script File Failure-Path Error? - by jerryf - Nov-28-2022, 10:33 AM
RE: Script File Failure-Path Error? - by snippsat - Nov-28-2022, 07:15 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-29-2022, 02:45 PM
RE: Script File Failure-Path Error? - by snippsat - Nov-29-2022, 07:04 PM
RE: Script File Failure-Path Error? - by jerryf - Nov-30-2022, 09:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Failure to run source command middlestudent 2 725 Sep-22-2023, 01:21 PM
Last Post: buran
  File path by adding various variables Mishal0488 2 1,072 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  Dickey Fuller failure Led_Zeppelin 4 2,671 Sep-15-2022, 09:07 PM
Last Post: Led_Zeppelin
  Script Path tfernandes 8 2,270 Jul-07-2022, 09:48 PM
Last Post: tfernandes
  Simple Python script, path not defined dubinaone 3 2,735 Nov-06-2021, 07:36 PM
Last Post: snippsat
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,239 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Assert failure jtcostel 1 1,661 Sep-03-2021, 05:28 PM
Last Post: buran
  Subprocess.Popen() not working when reading file path from csv file herwin 13 15,219 May-07-2021, 03:26 PM
Last Post: herwin
  Add file to sys.path permanently hcccs 5 8,504 Jan-31-2021, 11:26 AM
Last Post: hcccs
  Web Form to Python Script to Text File to zip file to web wfsteadman 1 2,160 Aug-09-2020, 02:12 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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