Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Abaqus Python - C++ Runtime Library Error

Status
Not open for further replies.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor