Problem with the responseEmulator method in Windows

I’m testing my experiment simulating responses using the last psychopy version and using the responseEmulator method. Using Ubuntu everything works fine however with Windows I get this error:

Exception in thread Thread-3:
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\PsychoPy3\lib\", line 916, in _bootstrap_inner
  File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\psychopy\hardware\", line 52, in run
    core.wait(float(onset) - last_onset)
  File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\psychopy\", line 343, in wait
    win.winHandle.dispatch_events()  # pump events
  File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\pyglet\window\win32\", line 639, in dispatch_events
  File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\pyglet\app\", line 93, in start
    'thread that imports')
RuntimeError: must be called from the same thread that imports

The script runs, however the responses are not emulated. How can I solve this on Windows?