Closed subzero79 closed 5 years ago
seems to require protobuf 3.6. I saw the same error with protobuf-3.5.2.post1. Native API with home-assistant 0.85.1 works as expected after pip3 install --upgrade protobuf
which installed protobuf-3.6.1.
That seems to do the trick
There is a specific version requirement from hangups, must be from homeassistant
(homeassistant) homeassistant@ha:~$ pip3 install --upgrade protobuf
Collecting protobuf
Downloading https://files.pythonhosted.org/packages/c2/f9/28787754923612ca9bfdffc588daa05580ed70698add063a5629d1a4209d/protobuf-3.6.1-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 592kB/s
Requirement already satisfied, skipping upgrade: six>=1.9 in /opt/homeassistant/lib/python3.6/site-packages (from protobuf) (1.11.0)
Requirement already satisfied, skipping upgrade: setuptools in /opt/homeassistant/lib/python3.6/site-packages (from protobuf) (39.1.0)
hangups 0.4.5 has requirement protobuf<3.2.0,>=3.1.0, but you'll have protobuf 3.6.1 which is incompatible.
Installing collected packages: protobuf
Found existing installation: protobuf 3.1.0.post1
Uninstalling protobuf-3.1.0.post1:
Successfully uninstalled protobuf-3.1.0.post1
Successfully installed protobuf-3.6.1
(homeassistant) homeassistant@ha:~$
Interesting, I didn't know protobuf was incompatible with older versions, I'll pin the version to >=3.6 manually.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Debian Stretch (pve guest). for homeassistant running via virtualenv. Esphomelib runs in my linux desktop instance (Manjaro linux via virtualenv)
ESP (ESP32/ESP8266/Board/Sonoff): ESP8266 Shelly1
Affected component: API
Description of problem: I've been testing several configurations of different devices (sonoff pow and shelly1) both of them are added correctly to my testing homasssistant instance. But the moment i try to add the integration into my production ha instance i get the below backtrace in ha.
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information: