fMRI triggpulse via parallel port not working

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win 10 64bit pro (21H2) 19044.1889
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?: yes, standalone
What are you trying to achieve?: starting experiment with triggpulse from MRI scanner via parallel port

What did you try to make it work?: Running script exactly as set up here: Communicating with fMRI — PsychoPy v2022.2.4

What specifically went wrong when you tried that?:
“ModuleNotFoundError: No module named 'psychopy.hardware.parallel”

We have also tried running ‘from psychopy import parallel’, which works fine, but then it must be a different version of the package/module/function, as it then does not recognize ‘waitTriggers’:
"AttributeError: ‘ParallelPort’ object has no attribute ‘waitTriggers’

If we need to install an external module for this to work, could someone please advice us which one, and where we can find it? We have already installed ‘pyparallel 0.2.2’, which we’ve added to the PsychoPy … lib/site-packages folder. However, we did not find a .pth file.


I have a similar problem. Do you found any solution?


Gonzalo Rojas Costa