alexandrebarachant / muse-lsl

Python script to stream EEG data from the muse 2016 headset
BSD 3-Clause "New" or "Revised" License
616 stars 182 forks source link

commands not working #175

Open earthtorose opened 2 years ago

earthtorose commented 2 years ago

Hello,

So firstly, I'm new to using python in case this is a daft question. I've installed muselsl and have got my muse 2 streaming via BlueMuse. when I try to use the muselsl view command I just get an invalid syntax error. Am I doing something super basic wrong? should I be running it from somewhere else? I'm on windows 10 using IDEL 3.10.2.

image

Any insight is appreciated, thanks.

xloem commented 2 years ago

The commands are run from a command shell, not a python shell.

if you are in a python shell, you might do something like:

import sys, muselsl.__main__ as entrypoint
sys.argv = 'muselsl view'.split(' ')
entrypoint.main()

But if you are using the commands it is better to learn to use a command line shell for your operating system.

You can also use muselsl from within python with such as:

import muselsl
help(muselsl.view)
muselsl.view()