NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py
Blubaugh, David A.
dblubaugh at belcan.com
Sat Sep 20 21:07:12 CEST 2008
Let me state that do have extensive experience with developing binary files. Please note that I have followed all of the instructions to the letter as far as developing a DLL to be imported. However, it is not working correctly. I believe it might be my system environment variables??
Thanks for your reply,
From: Fredrik Lundh [mailto:fredrik at pythonware.com]
Sent: Sat 9/20/2008 1:30 PM
To: python-list at python.org
Subject: Re: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py
Blubaugh, David A. wrote:
(no need to shout when filling in the subject line, thanks)
> 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
> ImportError: DLL load with error code 193
Error code 193 is ERROR_BAD_EXE_FORMAT, which means that the thing
you're trying to import is not a proper DLL.
> copy LICENSE.txt LICENSE.pyd
1 file(s) copied.
>>> import LICENSE
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed with error code 193
In general, the tools for building binary extensions for Python assumes
that you have at least some basic knowledge about how to build binaries
using a compiled language.
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.
More information about the Python-list