Closed rcambrj closed 3 years ago
The stack trace doesn't mean much to me unfortunately. Assuming this happened during install, can you try running without installing from it pip?
https://github.com/rhyst/idasen-controller#development
That will at least identify if its a problem with one of the dependencies installing or if its directly idasen-controller.
@rhyst thanks for the quick reply, I don't think my last comment was very clear 😳
when running the pip version:
idasen-controller
[1] 4255 abort idasen-controller
when running from the cloned git repository
python3 idasen_controller/main.py
[1] 4229 abort python3 idasen_controller/main.py
Ah, okay. Looks like something is going wrong in the bleak
library scanning call.
Can you try just bumping the bleak version in requirements.txt
, reinstalling, and re-running? Try the latest bleak==0.12.1
That appears to have no impact.
It would be worth finding out if bleak
works at all for you. Can you try making and running a test script:
import asyncio
from bleak import BleakScanner
async def run():
devices = await BleakScanner.discover()
for d in devices:
print(d)
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
That does indeed seem to be the problem:
cat test.py
import asyncio
from bleak import BleakScanner
async def run():
devices = await BleakScanner.discover()
for d in devices:
print(d)
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
python3 test.py
[1] 23171 abort python3 test.py
I'm not sure how to get a better stack trace or more useful error at this point... abort
is pretty vague :D
I just tried BLEAK_LOGGING=1
as recommended on the Bleak troubleshooting page but that doesn't seem to change the output.
Ah, well I don't mean to fob you off but I think you should raise an issue on the bleak
repo 🙈
Sorry I'm not more helpful!
Good point. I'll open an issue/PR with guidance once I get it solved. Thanks for your help!
Ugh, this was it! https://github.com/hbldh/bleak/issues/438#issuecomment-787125189
I'll make a PR for a troubleshooting section in the README this evening :)
Merged, thanks again!
I'm struggling to run this, perhaps you can help me?
I'm not super familiar with python, but I've managed to get this stack trace, maybe it's helpful?
and line 316 of
threading.py
looks like this: