"DLL load failed" when loading extensions - how to debug?

Danny Tuppeny danny at tuppeny.com
Sun Oct 2 14:13:02 UTC 2011


On 1 October 2011 19:09, Matt Mackall <mpm at selenic.com> wrote:

> Both of these messages are specific to Kiln so you're asking in the
> wrong place.
>

I've played around with adding print statements, and I'm not sure this is a
Kiln issue now. I created a new extension. It has nothing in it, except:
> import win32api

I added it to my Mercurial.ini Extensions section:
> danny=D:\Documents\Misc Scripts\Mercurial\dannytest.py

Now when I run "hg version", I see the same error for this one:
> *** failed to import extension danny from D:\Documents\Misc
Scripts\Mercurial\dannytest.py: DLL load failed: The specified module could
not be found.

So, I don't think the problem is specific to the Kiln extensions. I've
checked, and library.zip *does* contain win32api.py.

I believe something has changed between Mercurial 1.7.3 and 1.9.2, since I
never had this issue on 1.7.3. I do have Python 2.6 installed (though I did
before I upgraded from 1.7.3 to 1.9.2).

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111002/f0541a98/attachment-0002.html>


More information about the Mercurial mailing list