Unable to install HACS

Hi

A newbie here. I just install Home Assistant from a virtual disk image and running VM Virtualbox on a Win 10. I can setup Samba Share, ESP Home, File Editor and other AddOns. My next job was to install HACS, but I have problem even getting to see the API screen. So any help will be appreciated.

I have follows all the instruction, even clearing my browser cache, and when I get to Configuration, Integration, click on the bottom right + sign, type in HACS and click on HACS icon, I noticed that something was load on the back and then gone away. The next time I click on the icon, it just say “Please wait while the integration is being install.” and it stays there forever.

Looking at the log, it listed as follows:
2020-11-29 00:34:45 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs 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.

File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request

resp = await self._request_handler(request)

File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle

resp = await handler(request)

File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 118, in impl

return await handler(request)

File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 18, in request_context_middleware

return await handler(request)

File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 72, in ban_middleware

return await handler(request)

File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 127, in auth_middleware

return await handler(request)

File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 129, in handle

result = await result

File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 136, in post

return await super().post(request)

File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 60, in wrapper

result = await method(view, request, *args, **kwargs)

File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 69, in post

result = await self._flow_mgr.async_init(

File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 119, in async_init

flow = await self.async_create_flow(handler, context=context, data=data)

File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 532, in async_create_flow

await async_process_deps_reqs(self.hass, self._hass_config, integration)

File “/usr/src/homeassistant/homeassistant/setup.py”, line 343, in async_process_deps_reqs

await requirements.async_get_integration_with_requirements(

File “/usr/src/homeassistant/homeassistant/requirements.py”, line 74, in async_get_integration_with_requirements

await async_process_requirements(

File “/usr/src/homeassistant/homeassistant/requirements.py”, line 121, in async_process_requirements

if pkg_util.is_installed(req):

File “/usr/src/homeassistant/homeassistant/util/package.py”, line 54, in is_installed

return version(req.project_name) in req

File “/usr/local/lib/python3.8/site-packages/pkg_resources/init.py”, line 3125, in contains

return self.specifier.contains(item, prereleases=True)

File “/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/specifiers.py”, line 789, in contains

item = parse(item)

File “/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py”, line 56, in parse

return Version(version)

File “/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py”, line 275, in init

match = self._regex.search(version)

TypeError: expected string or bytes-like object

Regards
Peter

1 Like

Hi. Same problem here. I use HassOS 5.6 with HA 0.118.4. After trying to install HACS via integrations I got an infinite setup process with the following message in the log. If I try to use .yaml setup I’ve got infinite configuration check and system/os restart didn’t help.

`Logger: aiohttp.server
Source: util/package.py:54
First occurred: 12:19:30 AM (1 occurrences)
Last logged: 12:19:30 AM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 136, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 69, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 119, in async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 532, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 343, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 74, in async_get_integration_with_requirements
    await async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 121, in async_process_requirements
    if pkg_util.is_installed(req):
  File "/usr/src/homeassistant/homeassistant/util/package.py", line 54, in is_installed
    return version(req.project_name) in req
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3125, in __contains__
    return self.specifier.contains(item, prereleases=True)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 789, in contains
    item = parse(item)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py", line 56, in parse
    return Version(version)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/_vendor/packaging/version.py", line 275, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object`