Skip to main content

how can numpy be used within abaqus python in a linux operating system?

Submitted by andiM on

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 

 

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

Thu, 10/13/2011 - 07:06 Permalink

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!

Tue, 05/01/2012 - 12:23 Permalink