×
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 6-6 and sciPy import

ABAQUS 6-6 and sciPy import

ABAQUS 6-6 and sciPy import

(OP)
Dear All

I was wondering if anybody knows how to, or has successfully imported sciPy during a python scripted ABAQUS 6-6 analysis. The release notes for ABAQUS 6-6 suggests that Python 2.3.3 is now the current distribution, and furthermore, that external packages such as sciPy may now be imported.

My current Python Shell and associative packages such as sciPy are inclusive in the Python Entought 2.3.5, and should therefore be Python 2.3.3 compatible. However, whilst calling a sciPy import, the following error messsage is incurred

"Import Error: No module named scipy"

Do I need to direct ABAQUS to the location of the sciPy package, or do I need to copy the sciPy package to an ABAQUS file location for the import to be successful?

Thanks

bfillery

RE: ABAQUS 6-6 and sciPy import

(OP)
Hi All

For any body that is interested the answer to my own question is as follows:

Yes, ABAQUS Python needs to know where to find the external modules you wish to import. This can be achieved either by:

1) Creating a system environment variable called PYTHONPATH and setting it equal to the Python 2.3.5 site-packages directory (eg C:\Python23\Lib\site-packages) which is usually where modules like SciPy are installed to; OR

2) Creating an ABAQUS-specific Python extension module location by adding a directory tree custom\Python23\Lib\site-packages under the ABAQUS parent directory (usually C:\ABAQUS), then copying the contents of C:\Python23\Lib\site-packages to C:\ABAQUS\custom\Python23\Lib\site-packages.

bfillery

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