You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to run on Ubuntu the same Bleak example that I was running on Windows? I installed BlueZ on Ubuntu but when I tried the example, the bleak is not found. How to fix this issue?
This is not a problem with Bleak, but it seems to be a problem of mixing up Python 3.6 packages and a Python 3.8 interpreter. I think it's better to remove all these packages the way you installed them, and try again, but make sure to run pip as python3.8 -m pip then so you don't mix up versions again.
I tried that. First I uninstalled everything and installed based on the command that you provided but still same error:
Task was destroyed but it is pending!
source_traceback: Object created at (most recent call last):
File "central_node_test.py", line 204, in <module>
loop.run_forever()
File "/usr/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/usr/lib/python3.8/asyncio/base_events.py", line 1851, in _run_once
handle._run()
File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "central_node_test.py", line 100, in manager
await self.connect()
File "central_node_test.py", line 110, in connect
await self.client.connect()
File "/home/adnan/.local/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py", line 314, in connect
asyncio.ensure_future(self._disconnect_monitor())
task: <Task pending name='Task-5' coro=<BleakClientBlueZDBus._disconnect_monitor() running at /home/adnan/.local/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py:335> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7fc7331cf190>()] created at /usr/lib/python3.8/asyncio/base_events.py:422> created at /home/adnan/.local/lib/python3.8/site-packages/bleak/backends/bluezdbus/client.py:314>
What else can I use then? I need to keep my PC available all time as sometimes the Arduino will turn off BLE and turn it on when needs to send some data.
This discussion was converted from issue #857 on June 30, 2022 15:21.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
Is it possible to run on Ubuntu the same Bleak example that I was running on Windows? I installed BlueZ on Ubuntu but when I tried the example, the bleak is not found. How to fix this issue?
Beta Was this translation helpful? Give feedback.
All reactions