gattlib
gattlib copied to clipboard
TypeError: 'dict' object is not callable
I'm trying to use gattlib on archlinux (specifically, on a pikvm.) This is the error I get trying to import the library (used by https://github.com/OpenWonderLabs/python-host):
# python3 switchbot_py3.py
Traceback (most recent call last):
File "/root/src/python-host/switchbot_py3.py", line 35, in <module>
from bluetooth.ble import DiscoveryService, GATTRequester
File "/usr/lib/python3.9/site-packages/bluetooth/ble.py", line 1, in <module>
from gattlib import *
TypeError: 'dict' object is not callable