Python Forum
Simple Python script, path not defined
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Python script, path not defined
#3
Don't catch exceptions, let them propagate to see where the error comes from. For example, add a raise statement after the last print.

And, as Yoriz wrote above, please post the code between bbcode tags.
Reply


Messages In This Thread
RE: Simple Python script, path not defined - by Gribouillis - Nov-06-2021, 06:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,516 Jun-29-2023, 11:57 AM
Last Post: gologica
  Simple Question - ' defined as "a". ?' Ryan012 10 1,804 May-27-2023, 06:03 PM
Last Post: Ryan012
  Script File Failure-Path Error? jerryf 13 3,626 Nov-30-2022, 09:58 AM
Last Post: jerryf
  Script Path tfernandes 8 2,400 Jul-07-2022, 09:48 PM
Last Post: tfernandes
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,265 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  “NameError” “is not defined” script that I know works on other computers iamwithstupid 0 2,591 Nov-24-2020, 04:23 PM
Last Post: iamwithstupid
  Need help creating a simple script Nonameface 12 4,799 Jul-14-2020, 02:10 PM
Last Post: BitPythoner
  How to kill a bash script running as root from a python script? jc_lafleur 4 6,070 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  python library not defined in user defined function johnEmScott 2 3,955 May-30-2020, 04:14 AM
Last Post: DT2000
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,379 May-28-2020, 05:27 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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