I am using python for scripting in Abaqus 6.14-3 and would like to use an optimization function from the scipy package. This version of abaqus runs with python 2.7.3 (64bit) and has numpy 1.6.2 installed. So I installed scipy 0.9.0 (32bit), which I think is the compatible version.
Trying to import optimize I get the following error:
from scipy import optimize
File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\__init__.py", line 7, in <module>
from optimize import *
File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\optimize.py", line 28, in <module>
from linesearch import \
File "C:\SIMULIA\Abaqus\6.14-3\tools\SMApy\python2.7\lib\site-packages\scipy\optimize\linesearch.py", line 1, in <module>
from scipy.optimize import minpack2
ImportError: DLL load failed: %1 is not a valid Win32 application.
From other question on this error code I assume the different bit versions might be the problem. I am not sure though if it is possible to change pyhton to the 32bit version. Also, I am not sure what bit version numpy is.
I would appreciate any suggestions to find out the bit version of numpy and possibly how to install compatible versions.