Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading