Ctypes Error: Why can't it find the DLL.

Mudcat mnations at gmail.com
Sat Oct 28 02:37:04 CEST 2006


That was it. Once I added the other DLLs then it was able to find and
make the call.

Thanks for all the help,
Marc


Bruno Desthuilliers wrote:
> Mudcat a écrit :
> > Hi,
> >
> > I can't figure out why ctypes won't load the DLL I need to use. I've
> > tried everything I can find (and the ctypes website is down at the
> > moment). Here's what I've seen so far.
> >
> > I've added the file arapi51.dll to the system32 directory.  However
> > when I tried to access it I see this:
> >
> (snip)
> > WindowsError: [Errno 126] The specified module could not be found
> >
> > So then I use the find_library function, and it finds it:
> (snip)
> > At that point I try to use the LoadLibrary function, but it still can't
> > find it:
> (snip)
> > WindowsError: [Errno 126] The specified module could not be found
> >
> > What am I doing wrong? I've used ctypes before and not had this
> > problem. Before, I've just added the file to the system32 directory and
> > not had this problem.
>
> Looks like it could have to do with another dll arapi51.dll depends upon
> that would be missing, cf:
> http://aspn.activestate.com/ASPN/Mail/Message/ctypes-users/2593616
> 
> HTH




More information about the Python-list mailing list