Open ruben27813 opened 4 years ago
same problem
same problem to !!
Same here
One more.
my case:
${hassio_root} = /opt/homeassistant/application
${hassio_config_root}= /opt/homeassistant/application/config
Steps for fix error:
1) $ cd ${hassio_root}
2) $ source bin/activate
3) $ python3 -m pip install --upgrade uuid==1.30
4) $ python3 -m pip install --upgrade websocket-client==0.57.0
5) $ cd ${hassio_config_root}
6) $ rm -rf custom_components/sonoff/__pycache__/
save and restart home-assistant.
If you use manifest.json, do not forget to update it:
cat ${hassio_config_root}/custom_components/sonoff/manifest.json
{
"domain": "sonoff",
"name": "Sonoff / eWeLink",
"documentation": "https://github.com/peterbuga/HASS-sonoff-ewelink",
"dependencies": [],
"codeowners": ["@peterbuga"],
"requirements": ["uuid==1.30", "websocket-client==0.57.0"]
}
Easy fix for who (like me) is running on docker container and do not what to change the image.
Just edit init .py on sonoff directory and and change: REQUIREMENTS = ['uuid', 'websocket-client==0.54.0'] to REQUIREMENTS = ['websocket-client==0.54.0']
To be honest this is not a HASS issue at all. Seems HA team want to deprecate uuid utilization fixing a nonsense version on requirements.txt. Will not broke anything since uuid still available.
Thanks Roberto !!!
Follow everything, but:
Logger: homeassistant.util.package Source: util/package.py:95 First occurred: 17:33:10 (1 occurrences) Last logged: 17:33:10
Unable to install package uuid: ERROR: Could not find a version that satisfies the requirement uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 55)) (from versions: 1.30) ERROR: No matching distribution found for uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 55))
and:
Logger: homeassistant.loader Source: loader.py:533 First occurred: 17:32:50 (1 occurrences) Last logged: 17:32:50
You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
and:
Logger: homeassistant.components.hassio Source: components/hassio/init.py:326 Integration: Hass.io (documentation, issues) First occurred: 17:33:10 (1 occurrences) Last logged: 17:33:10
Component error: sonoff - Requirements for sonoff not found: ['uuid'].
Please Help.