[Numpy-discussion] physics simulation

Peter Plantinga pwp2@students.calvin....
Thu Apr 12 14:24:43 CDT 2012

I'm trying to run a physics simulation on a cluster. The original program
is written in fortran, and highly parallelizable. Unfortunately, I've had a
bit of trouble getting f2py to work with the compiler I'm using (absoft
v.10.1). The cluster is running Linux v. 12.

When I type just "f2py" I get the following error:

> f2py
Traceback (most recent call last):
  File "/opt/absoft10.1/bin/f2py", line 20, in <module>
    from numpy.f2py import main
  File "/usr/local/lib/python2.6/dist-packages/numpy/__init__.py", line
137, in <module>
    import add_newdocs
  File "/usr/local/lib/python2.6/dist-packages/numpy/add_newdocs.py", line
9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.6/dist-packages/numpy/lib/__init__.py", line
13, in <module>
    from polynomial import *
  File "/usr/local/lib/python2.6/dist-packages/numpy/lib/polynomial.py",
line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/__init__.py",
line 48, in <module>
    from linalg import *
  File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/linalg.py",
line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: libaf90math.so: cannot open shared object file: No such file
or directory

It looks like f2py cannot find libaf90math.so, located in
/opt/absoft10.1/shlib. How can I tell f2py where af90math is?

Thanks for the help!
Peter Plantinga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120412/6d1dfed3/attachment.html 

More information about the NumPy-Discussion mailing list