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

Pascal Quantin pascal.quantin at free.fr
Sun Oct 2 15:35:06 UTC 2011


Hi Danny,

Le 02/10/2011 16:13, Danny Tuppeny a écrit :
> On 1 October 2011 19:09, Matt Mackall <mpm at selenic.com
> <mailto: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?
Unless I'm mistaken, win32.py is part of pywin32 and Mercurial's
dependency to pywin32 was removed in Mercurial 1.8. So it's no more
needed but I can see that it is still part of the library.zip included
in the MSI installer (don't know why).
Maybe your pywin32 installation is broken. Does installing the latest
MSVC 2008 redistributable helps ?
http://www.microsoft.com/download/en/details.aspx?id=5582

Regards,
Pascal.

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


More information about the Mercurial mailing list