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
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
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