Something error for Psychopy conncting Emotivpro

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

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): v2022.2.4
Hi, everyone
I am trying to connect Psychopy to EmotivPro 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.


In trials, I try to create an eeg marker component (eeg_marker) before text component (first component).


Check the EmotivPro connect the EMOTIV EPOC Flex headset (headset: 54 cm)


When I press run of Psychopy, it can’t work.
The error message below:

Please I hope you can help me as soon as possible.