1st
When trying to debug Script errors, should you read the Textport from bottom to top, or vice versa? ie are the relevant errors and line numbers at the top or bottom-end of your traceback?
2nd
SImply have import requests
by itself in a Text DAT.
Getting a compile error on this line
from .response import is_fp_closed
This is my complete response. Can any Python experts suggest next troubleshooting steps? Thanks in advance!
The order of operations in a script error is the original caller is at the top and the place where the exception was created is the bottom. This means the bottom end is usually the most relevant, but you can trace up in case the bad data (or whatever) was fed from another call.
I was able to import requests with no problem. Maybe post an example .toe
Thanks. Not sure why but was able to cut and paste the exact same DAT into a new file and no issues.
Is there possibility of some Python naming collision or a Python preference that is document specific?
Hi, do you have any textDAT named “requests” in your network ? Because if so, I think I know that Touchdesigner will try to import it as a module before to look in /sys or external python path.