PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, November 15, 2022

[FIXED] What does it mean when an error shows multiple files in a Python traceback?

 November 15, 2022     error-handling, python     No comments   

Issue

I get the following error (edited out some parts, but same structure):

  File "./project/calcs.py", line 43, in getVar
    var = await olf.getOrg(*args, **kwargs)

  File "./project/subView.py", line 177, in getOrg
    undo = force.getLength()

  File "./project/stack/refine.py", line 89, in getLength
    for eTL in getLength():

blablabla.blablabla.issue: Can't redirect user

Am I supposed to look at the very FIRST error line to address the issue? Is it a chronology?

So in this case, I would be obliged to address calcs.py @ line 43 to fix that issue? I wouldn't be able to fix it by, let's say, addressing the 2nd error or the last one, correct?

Is that also the way to look at any python error trackback?


Solution

You are probably looking at a stack trace which is ordered chronologically (oldest call first). In your case this means var = await olf.getOrg(*args, **kwargs) ran first which then ended up calling undo = force.getLength() and then for eTL in getLength(): which failed.



Answered By - Allan Wind
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing