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.
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)
@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 .