importing from .pyd

Kay Schluehr kay.schluehr at
Mon Jul 14 13:11:03 CEST 2008

On 14 Jul., 06:03, moijes12 <moije... at> wrote:
> hi
> there is a .pyd file present in the same folder as the script
> by the name foo.pyd .I don't have .In the script I try
> import foo
> Error i get is
> ImportError: DLL load failed: The specified module could not be found.

It looks like the module that was accessed is either corrupt
( unavailable entry point ) or it contains dependencies to other
modules which are not available.

At least the latter can be checked without access to the source using
the DependencyWalker:

Notice that the message clearly indicates that Python found the module
but failed to load it i.e. performing a LoadLibrary() which yielded a
NULL pointer.

More information about the Python-list mailing list