question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding HACS to HA fails

See original GitHub issue

Version of HACS

0.20.4

Describe the bug

I followed the installation instructions, and have a ´/config/custom_components/hacs`that looks like:

.                        configuration_schema.py  helpers                  services.yaml
..                       const.py                 http.py                  setup.py
.translations            constrains.py            manifest.json            store.py
__init__.py              hacsbase                 repositories             ws_api_handlers.py
config_flow.py           handler                  sensor.py

I restarted HA and cleared the browser cache. I click the “add an integration” button and select HACS. Then the UI spins for a long time and eventually I get thrown back to the integration selection box.

Debug log

The HA log shows this:

2019-12-30 19:48:49 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 130, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 48, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 60, in post
    handler, context={"source": config_entries.SOURCE_USER}
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 66, in async_init
    flow = await self._async_create_flow(handler, context=context, data=data)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 638, in _async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 292, in async_process_deps_reqs
    hass, integration.domain
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 51, in async_get_integration_with_requirements
    hass, integration.domain, integration.requirements
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 90, in async_process_requirements
    ret = await hass.async_add_executor_job(_install, hass, req, kwargs)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 103, in _install
    progress_path.unlink()
  File "/usr/local/lib/python3.7/pathlib.py", line 1294, in unlink
    self._accessor.unlink(self)
FileNotFoundError: [Errno 2] No such file or directory: '/config/.pip_progress'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
dkagedalcommented, Dec 30, 2019

A simple touch .pip_progress worked as a workaround, but it shouldn’t be needed.

1reaction
FlorinAcsintecommented, Feb 18, 2020

Problem still present in latest versions. Maybe update the installation instructions with this tip?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HACS installation problems - Configuration
I have reinstalled HA+OS, then I have tryied to setup HACS from Integration - if I click on HACS app then a waiting...
Read more >
Download
Download · Go to the Add-on store · Install one of the SSH add-ons (you need to enable advanced mode in your user...
Read more >
HACS Update Failing (HACS v.1.16.0 | HA v.2022.3.5)
The Librarian on Dr Zzs Discord clued me in to the solution: redownload HACS using the instructions at hacs.xyz/docs/setup/download Once ...
Read more >
Install hacs in home assistant for themes and custom cards
To configure HACS go to Configuration, Integrations, and click on Add integration. Then, search for HACS, and click on it to add it....
Read more >
How do you set up Enphase Envoy in Home Assistant ...
Home Assistant finds the Envoy, but gives an "unexpected error" during ... I too have this problem. ... -Add HACS to HA and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found