Hi, everyone
I am trying to connect Psychopy(v2022.2.4) to EmotivPro(3.4.2) to run my experiment in the lab, but I have a problem to the “client_id” and “client_secret”.
I create the” .emotiv_cresd” file( path: C:\Users\user.emotiv_creds) in my home directory and put there the ID and Password which I got from EMOTIV website.
The error messenger:
Traceback (most recent call last):
File “C:\Users\user\ToTest\ToTest_lastrun.py”, line 103, in
cortex_obj = emotiv.Cortex(subject=expInfo[‘participant’])
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\emotiv.py”, line 71, in init
client_id, client_secret = self.parse_client_id_file()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\emotiv.py”, line 274, in parse_client_id_file
(key, val) = line.split(’ ')
ValueError: too many values to unpack (expected 2)
My program:
To create a emotive recording (cortex_rec) to start recording in the Inst routine.(Figure 1.png, Figure 2.png)
In trials, I try to create an eeg marker component (eeg_marker) before text component (first component).(Figure 3.png, Figure 4.png)
Check the EmotivPro connect the EMOTIV EPOC Flex headset (headset: 54 cm)(Figure 5.png)
When I press run of Psychopy, it can’t work.
The error message below(Figure 6.png):