psychopy.org | Reference | Downloads | Github

ioHub and pyHook

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

How can I add pyHook to psychopy?

Thanks for your time.

Hi I am experiencing exactly this issue also the Demos for
iohub_basic and
iohub_extended

have disappeared I wonder whether the iohub stuff is deprecated??

Philip

I had similar ioHub issues with 1.83, and, looking at the forums, others did as well. 1.82.01 is what I am currently running, and that works (OS X).

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.

Philip.

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

pyhook is now included in the win release:
New release: 1.84.1

Hopefully that fixes that problem (I don’t know about the msi installer issue)

That is awesome!

Thanks for the quick fix :slight_smile:

Best regards,

M

Hi, @jon,

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! :wink:

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