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\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\psychopy\hardware\emulator.py", line 52, in run
core.wait(float(onset) - last_onset)
File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\psychopy\clock.py", line 343, in wait
win.winHandle.dispatch_events() # pump events
File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\pyglet\window\win32\__init__.py", line 639, in dispatch_events
app.platform_event_loop.start()
File "C:\Users\user\AppData\Local\PsychoPy3\lib\site-packages\pyglet\app\win32.py", line 93, in start
'thread that imports pyglet.app')
RuntimeError: EventLoop.run() must be called from the same thread that imports pyglet.app
The script runs, however the responses are not emulated. How can I solve this on Windows?
Thanks