Hi, I work on a project using requests to get online Data about UV Index. I have no problem getting the data when I start a new Touchdesigner project and write my code with the request library. But the moment I close it and open it again nothing works anymore…
This is the errors in the console
Traceback (most recent call last):
File “</project1/request:op(‘/project1/request’).run()>”, line 1
td.Error: File “/project1/request”, line 1
r = previousimport(*args, **kw)
File “C:\Program Files\Derivative\TouchDesigner.2020.41040\bin\lib\site-packages\requests_init_.py”, line 43
import urllib3
r = previousimport(*args, **kw)
File “C:\Program Files\Derivative\TouchDesigner.2020.41040\bin\lib\site-packages\urllib3_init_.py”, line 8
from .connectionpool import (
r = previousimport(*args, **kw)
File “C:\Program Files\Derivative\TouchDesigner.2020.41040\bin\lib\site-packages\urllib3\connectionpool.py”, line 29
from .connection import (
r = previousimport(*args, **kw)
File “C:\Program Files\Derivative\TouchDesigner.2020.41040\bin\lib\site-packages\urllib3\connection.py”, line 38
from .util.ssl_ import (
r = previousimport(*args, **kw)
File “C:\Program Files\Derivative\TouchDesigner.2020.41040\bin\lib\site-packages\urllib3\util_init_.py”, line 5
from .response import is_fp_closed
ImportError: cannot import name ‘is_fp_closed’ from ‘/project1/response’ (/project1/response)
Results of run operation resulted in exception.
This is the Toe file. It is a very simple script. Do you guys have any ideas why this is happening. I followed the step to install the request library from this post : Help with installing requests module Python . And as I said everything is working fine if I start a new project and copy paste my code from the non-working one.
** I Tried to uninstall and reinstall an older version of Python and nothing as change.
API.toe (5.0 KB)
Thanks for you help!