Python Forum
[variable] is not defined error arises despite variable being defined
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[variable] is not defined error arises despite variable being defined
#2
I think you'll have to show the code of the one where it doesn't work.

You could set a breakpoint at the part where you think it is set and see if you reach that point before the error is generated.
Reply


Messages In This Thread
RE: [variable] is not defined error arises despite variable being defined - by bowlofred - Apr-05-2022, 03:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cant contain variable in regex robertkwild 3 177 Jun-12-2024, 11:50 AM
Last Post: deanhystad
  Variable being erased inside of if statement deusablutum 7 303 Jun-11-2024, 07:37 PM
Last Post: Skaperen
  how solve: local variable referenced before assignment ? trix 4 236 Jun-07-2024, 07:34 PM
Last Post: trix
  is this a valid variable name? Skaperen 6 407 Jun-05-2024, 10:13 PM
Last Post: Skaperen
  Help with writing monitored data to mysql upon change of one particular variable donottrackmymetadata 3 452 Apr-18-2024, 09:55 PM
Last Post: deanhystad
  Commas issue in variable ddahlman 6 661 Apr-05-2024, 03:45 PM
Last Post: deanhystad
  Variable Explorer in spyder driesdep 1 376 Apr-02-2024, 06:50 AM
Last Post: paul18fr
  Mediapipe. Not picking up second variable stevolution2024 1 366 Mar-31-2024, 05:56 PM
Last Post: stevolution2024
Question Variable not defined even though it is CoderMerv 3 463 Mar-28-2024, 02:13 PM
Last Post: Larz60+
  I'm getting a NameError: ...not defined. vonArre 2 548 Mar-24-2024, 10:25 PM
Last Post: vonArre

Forum Jump:

User Panel Messages

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