Hello, I just installed psychopy 1.84. I was testing the ioHub demos because I want to use eyetracking but it seems pyhook is required and missing. The error I get is:
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\iohub\devices\keyboard\win32.py”, line 13, in
import pyHook
ImportError: No module named pyHook
No help here I’m afriad but I also experienced difficulties in installing the standalone code - it starting complaining about a failure to find an .msi file.
The work around was to run it from the command line initially and that then seemed to calm it down.
I’ll make sure that pyHook is part of the upcoming bug-fix release. Sorry - it’s a dependency that I’d forgotten about (it’s only windows which I don’t use very often myself)
Philip, the issue with the msg file I haven’t seen, but that sounds like a different thing altogether. If it persists can you open a separate question? thanks
I re-encountered this problem (No module named ‘pyHook’) when using v1.90.1 (PY3) on win 10.
Is it possible this module is not included in this version?
Update:
I tried the latest PY3 version, it doesn’t have the pyHook module, but the PY2 version does. Hope the next version will included this, 2020 is coming!
As always, packaging turns out to be non-trivial. Turns out that the maintainers of pyHook don’t build wheels for us to install with pip and don’t support python 3 installers. In fact it looks like they haven’t been maintaining pyHook at all, so we might need to go elsewhere to get this functionality in the future.
But I found some unofficial wheels compiled for Py36 so it looks like we’re up and running. This will be fixed in the 3.0.0b8 release