basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
362 stars 99 forks source link

ModuleNotFoundError: No module named 'miflora.backends' #174

Open delesy opened 8 months ago

delesy commented 8 months ago

Hi, I cannot receive information from miflora. I have install pygatt: "pip3 install pygatt Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: pygatt in /home/delegove/.local/lib/python3.11/site-packages (4.0.5) Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from pygatt) (3.5) Requirement already satisfied: enum-compat in /home/delegove/.local/lib/python3.11/site-packages (from pygatt) (0.0.3) " If I do "sudo python3 miflora_poller.py" I receive: "@raspberrypi:~/domoticz/plugins/Mi_Flower_mate_plugin/miflora $ sudo python3 miflora_poller.py Traceback (most recent call last): File "/home/delegove/domoticz/plugins/Mi_Flower_mate_plugin/miflora/miflora_poller.py", line 9, in from miflora.backends import BluetoothInterface, BluetoothBackendException ModuleNotFoundError: No module named 'miflora.backends' " An idea?