Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ABAQUS 6-6 and sciPy import

Status
Not open for further replies.

bfillery

Mechanical
Oct 27, 2006
38
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
 
Replies continue below

Recommended for you

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

Part and Inventory Search

Sponsor