Submitted by andiM on Thu, 10/13/2011 - 01:46 Hello, I would like to ask if anyone knows how to use numpy within abaqus python, on a linux operating system. I would be grateful for any suggestions. Andi Forums Computational Mechanics Forum software sameeul Actually I figured it out Actually I figured it out last month. If you look closely, you will find that the python interpreter ported with Abaqus is 64-bit. So you will need a numpy version that is 64-bit. Fortunately, there is an unofficial 64-bit numpy version http://www.lfd.uci.edu/~gohlke/pythonlibs Here is what I did: 1. Installed 64-bit python. 2. Installed 64-bit numpy. 3. Then in the code, added these three lines: import sys sys.path.append("your\numpy64-bit\path") import numpy Worked for me! Regards, Samee Log in or register to post comments Thu, 10/13/2011 - 07:06 Permalink geoAndyzhao In reply to Actually I figured it out by sameeul Hi I donot know why but the website now only contain the Windows binaries setup files. I also want to use Numpy with Abaqus in linux, but it still not work. The error: File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/__init__.py", line 137, in <module> import add_newdocs File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/add_newdocs.py", line 9, in <module> from numpy.lib import add_newdoc File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/__init__.py", line 4, in <module> from type_check import * File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/type_check.py", line 8, in <module> import numpy.core.numeric as _nx File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/__init__.py", line 5, in <module> import multiarray ImportError: /home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/multiarray.so: undefined symbol: _Py_ascii_whitespace Wish you could give some help! Log in or register to post comments Tue, 05/01/2012 - 12:23 Permalink Log in or register to post comments8631 views
sameeul Actually I figured it out Actually I figured it out last month. If you look closely, you will find that the python interpreter ported with Abaqus is 64-bit. So you will need a numpy version that is 64-bit. Fortunately, there is an unofficial 64-bit numpy version http://www.lfd.uci.edu/~gohlke/pythonlibs Here is what I did: 1. Installed 64-bit python. 2. Installed 64-bit numpy. 3. Then in the code, added these three lines: import sys sys.path.append("your\numpy64-bit\path") import numpy Worked for me! Regards, Samee Log in or register to post comments Thu, 10/13/2011 - 07:06 Permalink
geoAndyzhao In reply to Actually I figured it out by sameeul Hi I donot know why but the website now only contain the Windows binaries setup files. I also want to use Numpy with Abaqus in linux, but it still not work. The error: File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/__init__.py", line 137, in <module> import add_newdocs File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/add_newdocs.py", line 9, in <module> from numpy.lib import add_newdoc File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/__init__.py", line 4, in <module> from type_check import * File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/type_check.py", line 8, in <module> import numpy.core.numeric as _nx File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/__init__.py", line 5, in <module> import multiarray ImportError: /home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/multiarray.so: undefined symbol: _Py_ascii_whitespace Wish you could give some help! Log in or register to post comments Tue, 05/01/2012 - 12:23 Permalink
Actually I figured it out
Actually I figured it out last month.
If you look closely, you will find that the python interpreter ported with Abaqus is 64-bit. So you will need a numpy version that is 64-bit. Fortunately, there is an unofficial 64-bit numpy version http://www.lfd.uci.edu/~gohlke/pythonlibs
Here is what I did:
1. Installed 64-bit python.
2. Installed 64-bit numpy.
3. Then in the code, added these three lines:
import sys
sys.path.append("your\numpy64-bit\path")
import numpy
Worked for me!
Regards,
Samee
In reply to Actually I figured it out by sameeul
Hi
I donot know why but the website now only contain the Windows binaries setup files.
I also want to use Numpy with Abaqus in linux, but it still not work.
The error:
File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/__init__.py", line 137, in <module>
import add_newdocs
File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: /home/geogroup/Public/Abaqus610/6.10-1/Python/Lib/numpy/core/multiarray.so: undefined symbol: _Py_ascii_whitespace
Wish you could give some help!