Closed Hororohoruru closed 1 year ago
Hey @Hororohoruru , can you try just running eegnb runexp -ip
without starting a muselsl stream yourself?
The library starts a stream under the hood for you when the command is run.
Our current guess is that having two of these running is leading to a conflict since the port is already in use.
@Hororohoruru Hello there! Any updates on this issue? Is it resolved or is it still going?
Hello! Sorry for the late reply. We were on the clock to prepare some teaching materials, so we never got to test the suggested solution, sorry.
No worries @Hororohoruru closing this for now then. Please feel free to re-open if you're still running into issues
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
muselsl stream
eegnb runexp -ip
✔️ Expected result
The experiment runs correctly
❌ Actual result
The Muse device is found, and the experiment window opens correctly. However, when the spacebar is pressed to start the experiment, nothing happens for some time and then the window halts and exits. Here is the traceback from the terminal:
In fact, after checking the code on eegnb/devices/eeg.py, I saw that self.muses is being assigned using the
list_muses()
method. However, if the device is already streaming, the function cannot find it. I tried to start a stream and then runmuselsl list
from a separate terminal. I assume the error is thrown after the code fails to find any devices after the 10 second timeout and then the list is empty at line 120. I found a similar problem in https://github.com/NeuroTechX/eeg-notebooks/issues/132#issuecomment-1076820751, but we would like to use the CLI, so the solution found by the author of that issues is not possible for our purposes.It is possible that I am missing something on how the Muse is supposed to work (not an expert with the device). If I understand correctly, the first steps on the CLI need a stream to be running, but then the experiment tries to connect to a device that is not running, and it does not find it. I would really appreciate your input on the problem.
Thank you very much for the library, we intend to use it for educational purposes and would love to fix this issue in order to share it with our students.