tags:

views:

24

answers:

1

I'm trying to use the win32gui module included with pywin32 but I can't get it working.

I have downloaded it, built it and everything seem to be located under site-packages, I've found win32gui.pyd at site-packages/win32/win32gui.pyd but when I try to import it I get:

import pyHook, win32gui
ImportError: DLL load failed: The specified module could not be found.

Do I need to move a dll somewhere? and if so, which one?

A: 

My guess is that win32gui depends on some DLL that is not on your system. You can download depends and see what you're missing.

However my first attempt will be try installing pywin32 from the installer, not by building it.

lazy1
Well, a missing DLL was fairly obvious :p just wasn't sure about which one :) depends solved the issue, working fine now. Thanks for the tip :)
dutt