seems like blender cannot import PIL as it it in the site-packages directory and blender import does not par subfolders of it
so I added the pil directory to the import path
but it makes blender crash with a “memory error”:
import Blender import sys dirpath=Blender.sys.dirname(Blender.Get('filename')) currentpath=dirpath.replace('\\','/')+'/' for p in sys.path: #will find the site-packages dir, add if p.find("site-packages")!=-1: #the PIL dir to it and add this to the path sys.path.append(p+"\PIL") <---causes the hanging/crash
did anybody succeded to use PIL in blender ???
appreciate if anyone answer this as it seems nobody replies to my threads