NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

B

Blubaugh, David A.

To All,


I have now been able to generate a .pyd file from a FORTRAN file that I am trying to interface with python. I was able to execute this with an additional insight into how f2py operates. It seems as though the documentation requires an upgrade, since there appears to be missing information that might misdirect a f2py newcomer, such as myself. However, I am now facing the following new error:

ImportError: DLL load with error code 193

The python script is as follows:

import hello

print hello.__doc__

print hello.foo.__doc__

hello.foo(4)



The Fortran code is as follows:

! -*- f90 -*-

subroutine foo(a)

integer a

print*, "Hello from Fortran!"

print*, "a=", a

end


I was wondering as to what I should now try in order to finally produce a python sending and receiving information from a FORTRAN .pyd file.


Any Suggestions???

Do I have to recompile Python with mingw32 in order to finally resolve this issue??



Thanks,


David Blubaugh



This e-mail transmission contains information that is confidential and may be
privileged. It is intended only for the addressee(s) named above. If you receive
this e-mail in error, please do not read, copy or disseminate it in any manner.
If you are not the intended recipient, any disclosure, copying, distribution or
use of the contents of this information is prohibited. Please reply to the
message immediately by informing the sender that the message was misdirected.
After replying, please erase it from your computer system. Your assistance in
correcting this error is appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top