Select to view content in your preferred language

Python Toolbox Fails - Traceback Insufficient

232
2
Jump to solution
08-29-2024 03:16 PM
ZacharyUhlmann1
Frequent Contributor

Getting an Error in an Python Toolbox I created that works on other projects.  However the Traceback doesn't provide a line in my .pyt file belying the toolbox.  How am I supposed to debug this?

Screenshot 2024-08-29 161437.png

thanks - Zach

Pro 3.0.2

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DavidSolari
Frequent Contributor

If you rewrite that list comprehension expression as a standard for loop does it produce a better traceback?

View solution in original post

0 Kudos
2 Replies
DavidSolari
Frequent Contributor

If you rewrite that list comprehension expression as a standard for loop does it produce a better traceback?

0 Kudos
ZacharyUhlmann1
Frequent Contributor

Hi @DavidSolari, it appears that line 112 was pointing to a list comprehension, or generally a line in my .pyt.  I am just accustomed to a printout of the problematic line.  I actually went back and decomposed the code and debugged in the Notebook and found the issue.

That is interesting, and I imagine you are correct that no line was printed because it was within a list comprehension.  I will mark yours as the answer.

Thanks!

Zach