OS (e.g. Win10): Win11
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.2.5 Py 3.9
Standard Standalone Installation? (y/n) If not then what?: Y
Do you want it to also run online? (y/n) Y
What are you trying to achieve?:
I have an EEG experiment consisting of a video and some picture tasks. I successfully ran the experiment multiple times locally with Emotiv Pro and collected my data. Last time, I added some sound components to the baseline measurement phase, which occurs before the video. When I connected to the EEG device, the baseline phase successfully played with sound. However, the video played at an extremely fast speed without audio, and the experiment crashed. I received the following warning:
Traceback (most recent call last):
File “C:\Users\OOkumus\EEG Studies\EEG_1\EEG_lastrun.py”, line 5827, in
run(
File “C:\Users\OOkumus\EEG Studies\EEG_1\EEG_lastrun.py”, line 465, in run
cortex_obj = emotiv.Cortex(subject=expInfo[‘participant’])
File “C:\Users\OOkumus\AppData\Roaming\psychopy3\packages\Python310\site-packages\psychopy_emotiv\emotiv.py”, line 92, in init
self.authorize()
File “C:\Users\OOkumus\AppData\Roaming\psychopy3\packages\Python310\site-packages\psychopy_emotiv\emotiv.py”, line 363, in authorize
self.auth_token = resp[‘result’][‘cortexToken’]
KeyError: ‘result’
ioHub Server Process Completed With Code: 0
What did you try to make it work?:
I asked ChatGPT for some solutions. First, I tried using taskkill
in CMD, but the problem persisted. Then, I realized that the computer’s audio was completely gone. I restarted the computer and attempted to run the experiment again by deactivating the sound components I had added. The video played at normal speed with audio, but at the end of the video, the experiment crashed again.
As a workaround, I uploaded the experiment to Emotiv Builder and tried running it a few times after synchronizing it with Pavlovia. In Pavlovia, the experiment is currently in piloting mode. During the image task stage, where I have my markers, the experiment produced the following error: TypeError: Cannot read properties of undefined (reading ‘startDatetime’).
Finally, I deactivated the EEG markers, and for now, the experiment is running without issues. However, I really need these markers for my analysis, and I am concerned about encountering the same issues with Pavlovia’s pilot mode. I would greatly appreciate your support.