question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MacOS Issue in 10.13.6 with muselsl

See original GitHub issue
Searching for Muses, this may take up to 10 seconds...
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/muselsl", line 11, in <module>
    load_entry_point('muselsl==2.2.0', 'console_scripts', 'muselsl')()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/muselsl-2.2.0-py3.7.egg/muselsl/__main__.py", line 57, in main
    cli = CLI(args.command)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/muselsl-2.2.0-py3.7.egg/muselsl/cli.py", line 9, in __init__
    getattr(self, command)()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/muselsl-2.2.0-py3.7.egg/muselsl/cli.py", line 32, in list
    list_muses(args.backend, args.interface)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/muselsl-2.2.0-py3.7.egg/muselsl/stream.py", line 51, in list_muses
    devices = adapter.scan(timeout=MUSE_SCAN_TIMEOUT)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/muselsl-2.2.0-py3.7.egg/muselsl/backends.py", line 33, in scan
    scanner = bleak.BleakScanner()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/bleak/backends/corebluetooth/scanner.py", line 44, in __init__
    self._manager = CentralManagerDelegate.alloc().init()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/bleak/backends/corebluetooth/CentralManagerDelegate.py", line 61, in init
    self.event_loop = asyncio.get_running_loop()
RuntimeError: no running event loop
objc[740]: CentralManagerDelegate object 0x7fcaa8ef4100 overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug
Exception ignored in: <CentralManagerDelegate objective-c instance 0x0>
SystemError: <class 'objc.RevivedObjectiveCObjectWarning'> returned a result with an error set
Exception ignored in: <function CentralManagerDelegate.__del__ at 0x107966f80>

Above error happens when install muselsl==2.2.0 However it resolved with muselsl==2.1.0. Possible compatibility issue on it.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
xloemcommented, May 31, 2022

thanks so much for sorting this out

it looks like a new version of bleak runs asyncio code in the scanner constructor. the fix makes sense.

1reaction
nolanrbradycommented, May 31, 2022

I just checked it out. The pull request you submitted seems to fix it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native bluetooth on macOS? It seems uvicMUSE was able ...
uvicMUSE was a package I stumbled across while trying to interpret the Muse (2016) sensor streams for a sonification project in Puredata. Ideally,...
Read more >
i have log in problems with MacOS 10.13.6…
i have log in problems with MacOS 10.13.6 High Sierra on an otherwise terrific 15" MBP of 2011 but I cannot get in!...
Read more >
Why am I unable to use Office 365 on MacOS 10.13.6 High ...
I just bought the Microsoft 365 subscription. I use MacOS High Sierra. To my horror, I am unable to install the Office 365...
Read more >
Outdated macOS and How to Upgrade
All UVM-owned computers running macOS 10.14 Mojave or older must be updated or replaced as soon as possible to comply with the University ......
Read more >
macOS 10.13 High Sierra Support
Epson will provide macOS 10.13 High Sierra drivers and software for Epson products on an on-going basis. To check for macOS 10.13 High...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found