Closed fenio closed 4 years ago
Make sure you have read the issue guidelines and that you filled out the entire template.
Then you can help each other 👌
I've just tried to add it in a legacy way. Running config check prior to reboot showed
bash-5.0# ./check
Testing configuration at /config
INFO:homeassistant.util.package:Attempting install of attrs==19.2.0
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/scripts/check_config.py", line 206, in check
async_check_ha_config_file(hass)
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 107, in async_check_ha_config_file
integration = await async_get_integration_with_requirements(hass, domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 48, in async_get_integration_with_requirements
hass, integration.domain, integration.requirements
File "/usr/src/homeassistant/homeassistant/requirements.py", line 77, in async_process_requirements
if pkg_util.is_installed(req):
File "/usr/src/homeassistant/homeassistant/util/package.py", line 45, in is_installed
return version(req.project_name) in req
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3137, in __contains__
return self.specifier.contains(item, prereleases=True)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 703, in contains
item = parse(item)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 31, in parse
return Version(version)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 200, in __init__
match = self._regex.search(version)
TypeError: expected string or bytes-like object
Fatal error while loading config: expected string or bytes-like object
Failed config
General Errors:
- expected string or bytes-like object
Successful config (partial)
So something weird is happening around attrs==19.2.0 its config version.
So something weird is happening around attrs==19.2.0 its config version.
Since HA v0.102.2 the requirements are now for the attrs module to be v19.3.0, which is why you are getting these errors as your system will now have v19.3.0 if you are on the latest version of HA.
I'm getting the same error, even when just trying the HA 'config check' feature.
By the looks of it the next release of HACS should fix this 'attrs==19.2.0' error as it looks like the requirements file updated to fix this here:
https://github.com/hacs/integration/blob/master/custom_components/hacs/manifest.json
If you think the 'attrs==19.2.0' error could be causing you issues, you can try rolling back to HA v0.102.1 or HA HA v0.102.0 to test.
Hey folks,
I'm having issue trying to install the newest (0.17.4) HACS on the newest (0.102.2) HA. I'm able to see HACS among other integrations but when I'm trying to add it all I got is spinning circle and then HA goes back to the list of integrations.
I tried to enable additional debug as stated in https://hacs.xyz/docs/basic/logs but I think it doesn't matter at this point.
I tried to google solution myself but whenever I saw similar issue it was all about DNS / network issues. I don't have such issues in my case. My docker container is able to resolve whatever domain name I try without issue using host or dig command.
To be honest I'm not sure what else can I try. My internet connection isn't super fast (up3Mbps/down16Mbps) but I think if it is enough to watch Netflix it should be enough to install HACS right? ;) I'm using pihole in my setup but for testing I tried to add integration with pihole disabled. I also tried to change my resolver to 8.8.8.8 or 1.1.1.1. It fails all the time with the same output.
The traceback from HA isn't very useful. Maybe some additional error handling should be introduced here but this is different topic.
Any hints are greatly appreciated.
Below is traceback and my configuration.yaml.