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



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

.



Relevant Pages

  • Re: Ctypes Error: Why cant it find the DLL.
    ... I can't figure out why ctypes won't load the DLL I need to use. ... I've added the file arapi51.dll to the system32 directory. ...
    (comp.lang.python)
  • Ctypes Error: Why cant it find the DLL.
    ... I can't figure out why ctypes won't load the DLL I need to use. ... I've added the file arapi51.dll to the system32 directory. ... At that point I try to use the LoadLibrary function, ...
    (comp.lang.python)
  • Re: [Q] ctypes callbacks with Delphi
    ... >> I'm aving some trouble getting callbacks from a Delphi DLL back to ... >> python working through ctypes. ... When I search for 'Delphi', ... If anyone is using ctypes with called-back functions written in python ...
    (comp.lang.python)
  • Re: Its Snark hunting time again:)
    ... spotted a dll in the system32 directory called Gremyvk.dll. ... Googled it but no hits so I popped ... have been some hits on Google so I figured it had to be brand new and ...
    (alt.comp.anti-virus)
  • Re: clr20r3 Error
    ... install which was required for it to work. ... It appears that without this dll resolving properly, ... I figured this out by comparing the contents of a working system32 directory ... dependent assemblies must be pre-loaded or loaded on demand through the ...
    (microsoft.public.dotnet.framework)