Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error?! When running the script. #18

Open
RoccoRakete opened this issue Apr 22, 2023 · 2 comments
Open

Error?! When running the script. #18

RoccoRakete opened this issue Apr 22, 2023 · 2 comments

Comments

@RoccoRakete
Copy link

RoccoRakete commented Apr 22, 2023

/Traceback (most recent call last):
File "/home/martin/Scripts/AirStatus/main.py", line 147, in
run()
File "/home/martin/Scripts/AirStatus/main.py", line 132, in run
data = get_data()
File "/home/martin/Scripts/AirStatus/main.py", line 68, in get_data
raw = get_data_hex()
File "/home/martin/Scripts/AirStatus/main.py", line 60, in get_data_hex
a = loop.run_until_complete(get_device())
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/martin/Scripts/AirStatus/main.py", line 43, in get_device
devices = await discover()
File "/home/martin/.local/lib/python3.10/site-packages/bleak/backends/scanner.py", line 99, in discover
async with cls(**kwargs) as scanner:
File "/home/martin/.local/lib/python3.10/site-packages/bleak/backends/scanner.py", line 79, in aenter
await self.start()
File "/home/martin/.local/lib/python3.10/site-packages/bleak/backends/bluezdbus/scanner.py", line 156, in start
assert_reply(reply)
File "/home/martin/.local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 23, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.InProgress] Operation already in progress

Any advice?

@anlsergio
Copy link

anlsergio commented Jun 2, 2023

Make sure to set ControllerMode = dual in /etc/bluetooth/main.conf then restart the bluetooth service sudo systemctl restart bluetooth

@rus-99-pk
Copy link

Make sure to set ControllerMode = dual in /etc/bluetooth/main.conf then restart the bluetooth service sudo systemctl restart bluetooth

Hello!

Thank you! It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants