Connect emotiv with psychopy

I’m trying to connect emotiv pro with psychopy and start some research work. I have setup the file .emotiv_creds and check the “approve” button in emotive app. and re-run the psychopy file. But it still cannot work and show the below information:

Could anyone help me with this and to tell how to solve it…
Many thank in advance for your help

10.2412 WARNING User requested fullscreen with size [1024 768], but screen is actually [1920, 1080]. Using actual size
Traceback (most recent call last):
File “D:\PSYCHOPY\TEST-01-IMAGE WITH EGG\test_lastrun.py”, line 100, in
cortex_obj = emotiv.Cortex(subject=expInfo[‘participant’])
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\hardware\emotiv.py”, line 87, in init
self.authorize()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\hardware\emotiv.py”, line 331, in authorize
logger.debug(f"{name} resp:\n{resp}")
UnboundLocalError: local variable ‘resp’ referenced before assignment

Experiment ended.

Here’s another thread with the same error.

However, do check where Resp is defined.

Also, here’s a thread about emotiv

Dear sir,

Thanks for your suggestion.
I have go though both of these two thread but none of them is similar to my situation.
I am asking the Emotive to help meanwhile…
test.psyexp (21.4 KB)
test-111.xlsx (9.7 KB)
I have upload these two file and hope could check for me