basnijholt / miflora

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

No module named 'btlewrap' #102

Closed Jochen723 closed 5 years ago

Jochen723 commented 6 years ago

I get the following error:

/home/pi/miflora/demo.py --backend gatttool poll C4:7C:8D:61:57:A0 Traceback (most recent call last): File "/home/pi/miflora/demo.py", line 9, in from btlewrap import available_backends, BluepyBackend, GatttoolBackend, PygattBackend ImportError: No module named 'btlewrap'

ChristianKuehnel commented 6 years ago

the latest version of miflora depends on the btlewrap library. If you install miflora via pip (which is the recommended way), pip will also install this dependency for you. I just added this to the documentation: https://github.com/open-homeautomation/miflora/blob/master/README.md#dependencies

ChristianKuehnel commented 5 years ago

old issue --> closing it

Diluxshan commented 5 years ago

I have the same error. /home/pi/miflora/demo.py --backend gatttool poll C4:7C:8D:61:57:A0 Traceback (most recent call last): File "/home/pi/miflora/demo.py", line 9, in from btlewrap import available_backends, BluepyBackend, GatttoolBackend, PygattBackend ImportError: No module named 'btlewrap'

please guide, for import btlewrap file

ChristianKuehnel commented 5 years ago

did you try the solution above?

Diluxshan commented 5 years ago

yes, I try that... But still, I have a different error.

usage: demo.py poll [-h] mac demo.py poll: error: the following arguments are required: mac