File “C:/Program Files/Derivative/TouchDesigner088/bin/TouchInit.py”, line 140, in tdcustomimport
r = previousimport(*args, **kw)
ImportError: No module named PIL.Image
again the confusing part is that i get no error in python, only in TD, when trying to import.
Hi we will give it a shot here.
The error message you see is because TouchDesigner defines its own import mechanism to allow for DAT imports etc, however it hasn’t been a problem with external module libraries yet.
-Rob.
from PIL import Image
from PIL import ImageChops
from PIL import ImageFilter
works fine in python, in td when i try :
[code]import sys
mypath = “C:/Python32/Lib/site-packages/PIL”
if mypath not in sys.path:
sys.path.append(mypath)
from PIL import Image[/code]
i get
python >>>
Traceback (most recent call last):
File "/project1/text1", line 6, in <module>
File "C:/Program Files/Derivative/TouchDesigner088/bin/TouchInit.py", line 140, in tdcustomimport
r = previousimport(*args, **kw)
ImportError: No module named PIL
Yes, switching to Python 3.3 streamlined many of the import issues we were previously experiencing.
In addition, externally installed modules should be automatically picked up by the TouchDesigner python interpreter now.
Cheers
Rob.