-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install #1
Comments
I fixed it adding encoding='utf8' to setup.py: def readme():
with open('README.md', encoding='utf8') as readme_file:
return readme_file.read() But now I have a problem executing read.py: ~/xiaomi-flower-care-api/example $ sudo python3 read.py
Getting data from device..
Traceback (most recent call last):
File "read.py", line 15, in <module>
print('Name: {}'.format(sensor.name))
File "../flowercare/reader.py", line 39, in name
response = self._read_handle(_HANDLE_DEVICE_NAME)
File "../flowercare/reader.py", line 127, in _read_handle
with Peripheral(self._mac, iface=self._interface) as connection:
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 391, in __init__
self._connect(deviceAddr, addrType, iface)
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 434, in _connect
rsp = self._getResp('stat')
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 407, in _getResp
resp = self._waitResp(wantType + ['ntfy', 'ind'], timeout)
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 339, in _waitResp
raise BTLEInternalError("Helper exited")
bluepy.btle.BTLEInternalError: Helper exited
Exception ignored in: <bound method Peripheral.__del__ of <bluepy.btle.Peripheral object at 0xb6aa5870>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 630, in __del__
self.disconnect()
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 453, in disconnect
self._writeCmd("disc\n")
File "/usr/local/lib/python3.5/dist-packages/bluepy/btle.py", line 305, in _writeCmd
self._helper.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe |
I get the exact same error. |
I have also encountered the same error with Python 3.5.3 @vrachieru Could you please write which Python version did you use? |
same error here. |
Me too, Python 3.7.3 |
i get an error |
This is not a python issue but a shell issue.
I had this issue when accessing my raspberry through ssh, removing the SendEnv line solved the issue and I could install xiaomi-flower-care-api properly |
did you ever resolved this ? |
With Python3 bluepy may need an additional libraries: libglib2.0-dev based on bluepy
|
Hi,
I'm trying to install your api. I had some problems to install bluepy, but now I solved it, I get this error I don't know how to resolve:
Can you help me? I don't know a lot of python, so maybe it's trivial, sorry if I asking something too simple.
Thanks!
The text was updated successfully, but these errors were encountered: