mindaffect / pymindaffectBCI

Python SDK for high performance on-line Brain Computer Interface development.
https://mindaffect.nl
Other
63 stars 27 forks source link

Problem using smart-keyboard with pymindaffectBCI #45

Open Enolafr opened 2 years ago

Enolafr commented 2 years ago

First of all, I may express that I am deeply impressed of your MindAffect speller. Managing free spelling of words in my first try after installation was really astonishing.

Unfortunately, I have a problem starting mindaffectBCI with the smart-keyboard module.

I first install psychopy in a conda environment using the following commands:

 conda create -n py36 python=3.6  # Create environment with python 3.6
 conda activate py36              # Activate the new environment
 conda install psychopy           # Install psychopy in the environment

Then I proceed to install pymindaffectBCI and smart-keyboard:

 cd C:\...\pymindaffectBCI   # cd to git clone of the mindaffectBCI repo
 python -m pip install -e .  # install pymindaffectBCI in the environment
 cd C:\...\smart-keyboard    # cd to git clone of the smart-keyboard repo
 python -m pip install -e .  # install smart-keyboard in the environment

All the commands complete without any errors.

I am now able to successfully start mindaffectBCI using the selectionMatrix presentation:

 python -m mindaffectBCI.online_bci --acquisition fakedata

I have also managed to make successful use of the application using "brainflow" acquisition.

Then I try to start using a config file containing "presentation":"smart_keyboard.bci_keyboard":

 python -m mindaffectBCI.online_bci

C:...\smart-keyboard\smart_keyboard.json --acquisition fakedata

Then I am stuck at a window with black background and title "PschoPy", saying "Successfully connected to Utopia", and "Starting application". Nothing more seems to happen. Characters are continuously scrolling in the terminal window in the background, but no error messages are printed. And no keyboard or any other text appears in the application window.

Does anyone have an idea about what the problem may be, or have a suggestion for how I can further debug this issue? Currently without any error messages I am quite clueless. I am running Windows 10. Any suggestions would be highly appreciated.

Kind regards

Olaf

Skjermbilde
jadref commented 2 years ago

Dear Olaf, Thanks for your nice words about our system, and sorry to hear you are having problems with the smart keyboard. From what you describe you are running everything correctly.

To help understand the problem more, can you attach the information from the log-file for the smart-keyboard? This should be a file called something like '2022-01-27T1420.log' and found in the 'logs' sub-directory from where you ran the python command? This may give an error code to track down the issue.

Jason

Enolafr commented 2 years ago

Dear Olaf, Thanks for your nice words about our system, and sorry to hear you are having problems with the smart keyboard. From what you describe you are running everything correctly.

To help understand the problem more, can you attach the information from the log-file for the smart-keyboard? This should be a file called something like '2022-01-27T1420.log' and found in the 'logs' sub-directory from where you ran the python command? This may give an error code to track down the issue.

Jason

Dear Jason Thank you very much for your response. A log file is attached below as well as another PsychoPy window message that occasionally appear.

Olaf

2022-02-20T184135.log

Skjermbilde