Closed micksel closed 6 years ago
Running Python3 on a Pi3 with raspbian/wheezy
The ImportError indicates that python cannot find the TimeoutExpired error in the subprocess module. This should be part of every python installation...
I just tried to run the tests with Python 2.7 and I get the same error. Are you really sure that you're using Python3? Did you try python3 demo.py
?
A very common mistake and there is no nice way to avoid it.
Should be fixed with https://github.com/open-homeautomation/miflora/pull/61
I found my ID using : sudo hcitool lescan) C4:7C:8D:62:0C:81 Flower care
I edit demo.py with this but when I run it I get the following errors: I edit demo.py with this but when I run it I get the following errors: pi@domo1 ~ $ sudo /usr/bin/python3 /home/pi/domoticz/scripts/python/miflora/demo.py pi@domo1 ~/domoticz/scripts/python/miflora/miflora/tests $ /usr/bin/python3 /home/pi/domoticz/scripts/python/miflora/demo.py Traceback (most recent call last): File "/home/pi/domoticz/scripts/python/miflora/demo.py", line 1, in
from miflora.miflora_poller import MiFloraPoller, \
File "/home/pi/domoticz/scripts/python/miflora/miflora/miflora_poller.py", line 12, in
from subprocess import PIPE, Popen, TimeoutExpired
ImportError: cannot import name TimeoutExpired
I can connect with gatttool -I and Connect pi@domo1 ~/domoticz/scripts/python $ gatttool -I [ ][LE]> connect c4:7c:8d:62:0c:81 Attempting to connect to c4:7c:8d:62:0c:81 Connection successful Notification handle = 0x0021 value: 00 Notification handle = 0x0021 value: 00 Notification handle = 0x0021 value: 00 [c4:7c:8d:62:0c:81][LE]> (gatttool:9429): GLib-WARNING **: Invalid file descriptor.