Python Forum
Need help with 3 errors when running script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with 3 errors when running script
#3
(Dec-04-2020, 10:50 PM)Larz60+ Wrote: The code lines shown are the line numbers that were executed prior to receiving the error.
So in Your case, the sequence is: line 89 (main()), then line 85, and finally line 54 where the error actually occurred.

The code of that line is then shown, and the error message explains that the subscript used is the issue.

Looking at that, you can't use a string 'value' as an index. use without quotes, which is the variable name.

thanks for the tip, but it says value is not defined
Reply


Messages In This Thread
RE: Need help with 3 errors when running script - by pythoncoder999 - Dec-18-2020, 11:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  No Internet connection when running a Python script basil_555 8 973 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 1,003 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Help Running Python Script in Mac OS emojistickers 0 434 Nov-20-2023, 01:58 PM
Last Post: emojistickers
  Trying to make a board with turtle, nothing happens when running script Quascia 3 835 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  Python script running under windows over nssm.exe JaroslavZ 0 832 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Running script with subprocess in another directory paul18fr 1 4,527 Jan-20-2023, 02:33 PM
Last Post: paul18fr
  Running script on multiple files Afrodizzyjack 1 2,609 May-14-2021, 10:49 PM
Last Post: Yoriz
  Error when running script on startup in Linux NoahTheNerd 0 2,061 Mar-07-2021, 04:54 PM
Last Post: NoahTheNerd
  Refresh data in python script while running in Terminal frankenchrist 4 7,720 Feb-03-2021, 09:54 AM
Last Post: Larz60+
  [SOLVED] Requiring help running an old Python script (non Python savvy user) Miletkir 13 5,889 Jan-16-2021, 10:20 PM
Last Post: Miletkir

Forum Jump:

User Panel Messages

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