Qwerty11111
Mechanical
- Jan 9, 2014
- 2
I am trying to use the python library Pillow (which is a fork of PIL) in an ABAQUS plug-in. I have installed pillow (Pillow-2.3.0.win-amd64-py2.6.exe) and used it successfully with python 2.6.6. When I try and use it with abaqus python, I get a C++ runtime error.
I am using ABAQUS v6.13-1.
This is my test script (called testpil.py). It sets the path, so the pillow library can be used and then tries to import it.
import sys
import os
stdPythonDir = 'C:\Program Files\Python26'
sys.path.insert(0, os.path.join(stdPythonDir ,'Lib','site-packages'))
print sys.path
from PIL import Image, ImageDraw
If I type 'python testpil.py' it works but if I type 'abaqus python testpil.py' I get the error.
Any help appreciated.
I am using ABAQUS v6.13-1.
This is my test script (called testpil.py). It sets the path, so the pillow library can be used and then tries to import it.
import sys
import os
stdPythonDir = 'C:\Program Files\Python26'
sys.path.insert(0, os.path.join(stdPythonDir ,'Lib','site-packages'))
print sys.path
from PIL import Image, ImageDraw
If I type 'python testpil.py' it works but if I type 'abaqus python testpil.py' I get the error.
Any help appreciated.