[Q] building a fortran extension module
SungPil Yoon
yoonseo at altavista.net
Tue Feb 26 14:46:16 EST 2002
Hi, all
I am trying to build a fortran extension module using f2py.
I have done it successfully on Sun, and the message from 'file' command is
% file rinexSupmodule.so
ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, \
not stripped
Now, I am having trouble to do the same thing on HP. After I build an
extension module and use 'file' command then I got
% file addmodule.sl
PA-RISC1.1 shared executable dynamically linked -not stripped
The message says that the file is not a library and if I try to import
in python, I get this error message:
% python -v
>>> import add
shl_load addmodule.sl
/usr/lib/dld.sl: Bad magic number for shared library: addmodule.sl
/usr/lib/dld.sl: Exec format error
addmodule.sl: Exec format error
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: Failed to load addmodule.sl
>>>
Could anybody figure out what causes this problem? I tried python 2.0.1
and python 2.2, and had the same problem.
Any help will be appreciated.
sungpil
More information about the Python-list
mailing list