[Numpy-discussion] F2PY error with G95 on Mac OS 10.5

Adam Mercer ramercer@gmail....
Wed Jun 10 14:59:38 CDT 2009

On Wed, Jun 10, 2009 at 12:44, Samir Unni<srunni@gmail.com> wrote:

> I'm trying to use F2PY on Mac OS 10.5 with G95, but I'm getting the
> error "g95: unrecognized option '-shared'". I tried modifying the
> NumPy code to use the correct "-dynamic" flag, rather than the
> "-shared" flag. While that does allow for F2PY to successfully
> execute, I get the error
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: dlopen(/Users/srunni/src/pdb2pqr/pdb2pqr/tinker/src/tinker/source/ese.so,
> 2): no suitable image found.  Did find:
>        /Users/srunni/src/pdb2pqr/pdb2pqr/tinker/src/tinker/source/ese.so:
> unknown file type, first eight bytes: 0x80 0xC0 0x4F 0x00 0xEB 0x57
> 0xE0 0x8F
> when I attempt to import the generated module. Any ideas on how to fix this?

AFAIK g95 is not supported by numpy distutils on Mac OS X.



More information about the Numpy-discussion mailing list