×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Abaqus Python - C++ Runtime Library Error

Abaqus Python - C++ Runtime Library Error

Abaqus Python - C++ Runtime Library Error

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources