bardiabarabadi / uvicMUSE

BlueMuse Alternative with MATLAB Stream (UDP)
BSD 3-Clause "New" or "Revised" License
14 stars 6 forks source link

uvicMuse not starting on Osx 11.0.1 #7

Closed soreno123 closed 3 years ago

soreno123 commented 3 years ago

Hello, i've got a MUSE-02 and since i'm unable (apparently) to use my BLE usb dongle, i'm trying to use uvicMUSE with the internal Bluetooth of the Mac (Macbook Pro 2019 16'). But as soon as i start it it crashes with no error message. I've tried

On MacOSx: Application crashes after running:

pip uninstall serial pyserial pip install pyserial esptool

But nothing changed. Any Hint? Thanks, Soreno

soreno123 commented 3 years ago

Update: I reinstalled uvicmuse and now when i start it i get this error:

INFO ] [Logger ] Record log in /var/root/.kivy/logs/kivy_20-12-13_1.txt [INFO ] [Kivy ] v2.0.0rc4, git-d74461b, 20201015 [INFO ] [Kivy ] Installed at "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy/init.py" [INFO ] [Python ] v3.9.1 (v3.9.1:1e5d33e9b9, Dec 7 2020, 12:10:52) [Clang 6.0 (clang-600.0.57)] [INFO ] [Python ] Interpreter at "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9" [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/bin/uvicmuse", line 5, in from uvicmuse.main import main File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicmuse/main.py", line 3, in from uvicmuse.interface import runGUI File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/uvicmuse/interface.py", line 9, in from kivy.app import App File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy/app.py", line 411, in from kivy.base import runTouchApp, async_runTouchApp, stopTouchApp File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy/base.py", line 28, in from kivy.clock import Clock File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/kivy/clock.py", line 466, in from kivy._clock import CyClockBase, ClockEvent, FreeClockEvent, \ ModuleNotFoundError: No module named 'kivy._clock'

bardiabarabadi commented 3 years ago

Hello, it seems like the problem is caused by Kivy. Try these:

  1. Reinstall uvicmuse using the --force-reinstall flag for pip. Also, make sure you are installing the latest version (5.2.1)
  2. Follow this instruction to install and compile Kivy: https://kivy.org/doc/master/gettingstarted/installation.html#install-conda
  3. I can see that you are using python 3.9.1. If the above solutions do not work, try making a new conda environment with python=3.8
soreno123 commented 3 years ago

Hello, I've remove python 3.9 and installed 3.8. Now it starts, but when i look for muse it says "No BLE Module Found" image That's my BT info. image Any hint? Thanks a lot

bardiabarabadi commented 3 years ago

Screen Shot 2020-12-13 at 3 16 49 PM

from uvicmuse.MuseWrapper import MuseWrapper as MW import asyncio loop = asyncio.get_event_loop() M_wrapper = MW (loop = loop, target_name = None, timeout = 10, max_buff_len = 500) M_wrapper.search_and_connect() # returnes True if the connection is successful EEG_data = M_wrapper.pull_eeg() EEG_data = M_wrapper.pull_eeg() print (str(EEG_data)) M_wrapper.disconnect()

soreno123 commented 3 years ago

Hello, after giving permission to iTerm it worked. image Thanks for the support!

bardiabarabadi commented 3 years ago

Glad to hear that. Closing the issue.