I installed that and I tried one of the documentation examples, but I got :
File "C:\Python26\lib\site-packages\pyHook\cpyHook.py", line 21, in swig_import_helper
_mod = imp.load_module('_cpyHook', fp, pathname, description)
ImportError: DLL load failed: %1 is not a valid Win32 application.
I'm guessing it's because I'm using x64 python. Stefan, are you using x86 python on x64 OS ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I face the same problem now.
The reason is I use 64-bit python on windows7 but till now pyHook only has 32-bit intaller…
Well, I have many other 64-bit modules associated with my python now,so I do not want to reinstall the python to 32-bit.
Is there anyway to install pyHook on 64-bit python? Or anybody has pyHook 64bit installer?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you please make one ?
don't have access to win64… so you're on your own, sorry. :P
I faced the same issue today. Building a .msi installer from source resolved the issue for me:
As with x86:
But:
Then install the .msi and use pyHook as usual.
I can't get it to work, first I had to create a distutils.cfg to get around the "Unable to find vcvarsall.bat" error
Now I'm getting "gcc exited with code 1" or something like that. There are a lot of import "__imp__…" errors.
Can't you just post your x64 installer ?
I put it here, but it would be better to be hosted on this site… nanotube, any ideas?
http://rapidshare.com/files/382371078/pyHook-1.5.1.win32-py2.6.msi.html
MD5: C4ACE5BADD19B87CFA3A447D21F19C49
/sc
I installed that and I tried one of the documentation examples, but I got :
I'm guessing it's because I'm using x64 python. Stefan, are you using x86 python on x64 OS ?
Right, I am using x86 python on my 64 bit Win7:
/sc
After half of the packets and code I find online doesn't work on x64 … I uninstalled it and installed x86.
I face the same problem now.
The reason is I use 64-bit python on windows7 but till now pyHook only has 32-bit intaller…
Well, I have many other 64-bit modules associated with my python now,so I do not want to reinstall the python to 32-bit.
Is there anyway to install pyHook on 64-bit python? Or anybody has pyHook 64bit installer?
I had the same problem. I found x64 binaries here http://www.lfd.uci.edu/~gohlke/pythonlibs/
Look for the "Base distribution". Unfortunately, you have to install many other python libraries using this installer… but it works !