labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

TypeError: 'dict' object is not callable #242

Open webdeck opened 2 years ago

webdeck commented 2 years ago

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