NeuroTechX/EEG-ExPy

syntax error in muselsl

Opened this issue ยท 6 comments

โ„น Computer information

  • Platform OS (e.g Windows, Mac, Linux etc): MAC M2
  • Python Version: 3.7
  • Brain Interface Used (e.g Muse, OpenBCI, Notion etc): Muse

๐Ÿ“ Provide detailed reproduction steps (if any)

We installed everything on a Mac M2 OS 14.3.1 (23D60)

โœ”๏ธ Expected result

running eegnb -ip and go to the next step

โŒ Actual result

when running eegnb runexp -ip (and when running the test cell as in the installation guide) we get this syntax error message (corresponding to the colon after "device")

File "/Users/USERNAME/miniconda3/envs/eeg-notebooks/lib/python3.7/site-packages/muselsl/muse.py", line 90
if ((device := self.adapter.connect(self.address, retries))

Duplicate from alexandrebarachant/muse-lsl#216 (comment)

hi Daniele.

1 - can you share a screenshot of the exact terminal commands and output

2 - recommended device type to use is muse2_bfn, which uses brainflow not muselsl as backend.

GeplakteAfbeelding-1

How to make muse2_bfn default? A previous error complained about brainflow not being installed

Ran Into the same problem. Tried to run the installation test but got a SyntaxError related to muselsl
Screenshot_3

That syntax (the "walrus operator") is only supported in Python 3.8+

I'd suggest to drop support for Python 3.7, maybe even go all the way up to Python 3.10. (edit: nvm, I think we still have some dependencies through psychopy that makes this difficult)

Thanks for the advice. I tried to create a new environment for the eeg notebook, this time in 3.8 but got a new error
Screenshot_4

@BoBo262 , can you try the following and let us know what you get:

  • creating the eeg-expy environment without wxpython
    conda create -n "eeg-expy" python=3.8 git pip

  • change directory to where eeg-expy is downloaded on your machine and then install
    cd <your_path_where_eegexpy_is_on_your_machine>
    pip install -e .