Psychopy connect 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): 2022.2.4
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?:
Hi, I want to use psychopy to connect EmtoivPro. But It can’t work.
the error text:
Traceback (most recent call last):
File “C:\Users\user\Desktop\the movie\”, line 103, in
cortex_obj = emotiv.Cortex(subject=expInfo[‘participant’])
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\”, line 77, in init
client_id, client_secret = self.parse_client_id_file()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\hardware\”, line 280, in parse_client_id_file
(key, val) = line.split(’ ')
ValueError: too many values to unpack (expected 2)
What did you try to make it work?:
I rewrite contents in the emotiv file from Psychopy**(C:\Program Files\PsychoPy\Lib\site-packages\psychopy\hardware\emotiv)**

rewrite contents:
class Cortex:
if os.getenv(‘CORTEX_DEBUG’, False):
CORTEX_URL = “wss://localhost:7070”
CORTEX_URL = “wss://localhost:6868”

def __init__(self, client_id_file=None, subject=None):
     **"client id":yL8tW5LNd1NQxsdI0Gj6EJjZAYI7uSwtSqknxPkD}**

** “”"**
** #self.client_id = None**
** #self.client_secret = None**
** #client_id, client_secret = self.parse_client_id_file() **
** client_id = “yL8tW5LNd1NQxsdI0Gj6EJjZAYI7uSwtSqknxPkD”**
** client_secret = “hktb5INwNnx8sKuIXJxAsjywUveHU90X642nOUjOSMJawQ0mmikLyLh3PK0KVSl6w1GCPIe3is7PIPWfJrXLGHWAgvySVuK8xwHClDrNGy2yvKZVHHTLTcdAHMmjYaDd”**
self.set_client_id_and_secret(client_id, client_secret)
self.id_sequence = 0
self.session_id = None
self.marker_dict = {}
self.waiting_for_id = None
self.websocket = None
self.auth_token = None
logger.debug(“Connection initializing”)
logger.debug(“Connection initialized”)

I didn’t rewrite other contents in the emotiv file.
I also watch the youtube vedio ([TUTORIAL] How to use EMOTIV components in PsychoPy for ERP Research - YouTube)
But It can’ t work.
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.