questions on Python libraries, using MindAffectBCI

turbocharged42turbocharged42 California
edited June 2025 in Software

Hello! This is my very first BCI project, and I am trying to make a game controlled by EEG signals. I have an OpenBCI Ganglion and an EEG headband.

I saw on some of the forum pages that MindAffectBCI was suggested for this use:

https://openbci.com/forum/index.php?p=/discussion/3619/low-cost-way-to-get-started-pong-game

so I tried to follow:

https://openbci.com/community/mind-controlled-robot-openbci-mindaffectbci-maqueen-v2/

which uses MindAffectBCI. I tried setting up the python package using the tutorial and with the other github link

https://github.com/wjcroft/pymindaffectBCI

But for some reason when I run the test command

python -m mindaffectBCI.online_bci --acquisition fakedata

the java server is connected and the python window opens for a second but gives the following error:

in update_nch
self.background = pyglet.graphics.OrderedGroup(0)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pyglet.graphics' has no attribute 'OrderedGroup'

I'm not exactly sure what I should do next, and I tried different versions, but none of them worked any better. Could someone point me in the right direction? Is using MindAffectBCI a lost cause since it appears their project has been abandoned? (the github is deleted and a lot of their youtube videos have been removed). Are there any alternatives?

Comments

  • wjcroftwjcroft Mount Shasta, CA
    edited June 2025

    Hi Turbo,

    It is true that MindAffect 'company' has officially moved on from the Brain Computer Interface cVEP project. They now do EEG clinical diagnostics. The BCI repo is no longer being maintained by MindAffect. However the repository still exists and was sufficient for Pyotr to get his projects going. Many of the earlier videos they recorded are still on their Vimeo site:

    https://vimeo.com/mindaffect

    As far as some help on your specific question, I'm going to mention Pyotr here @dream4future in hopes he might have some suggestions on your error message.

    Regards, William

  • dream4futuredream4future Warsaw, Poland

    Hi there,
    'No attribute' error very often is caused by the wrong library version. Make sure pyglet version is correct. Check the requirements.txt
    P.

  • turbocharged42turbocharged42 California
    edited June 2025

    @dream4future said:
    Hi there,
    'No attribute' error very often is caused by the wrong library version. Make sure pyglet version is correct. Check the requirements.txt
    P.

    Thanks for the reply @dream4future! So I looked in requirements.txt and almost none of them seemed to have versions that corresponded with actual versions of the programs, so I tried picking versions that are close to what i could find. I'm still getting pyglet errors which don't really make any sense to me. In the screenshot, you can see all the versions of the packages that I am using and I put a few comments describing which work and which don't work.

    Could you provide the versions you used for these libraries that are currently working? Also could you provide the correct python version since I tried several without any avail.

Sign In or Register to comment.