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.

HACS shows an error with ACCEPT_HEADERS in aiogithubapi

See original GitHub issue

System Health details

System Health

version core-2021.7.1
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.9.5
os_name Linux
os_version 5.10.45
arch x86_64
timezone Europe/Madrid
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 6.1
update_channel stable
supervisor_version supervisor-2021.06.8
docker_version 20.10.6
disk_total 62.3 GB
disk_used 22.1 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Visual Studio Code (3.5.0), SSH & Web Terminal (9.0.0), Check Home Assistant configuration (3.8.0), Grafana (7.0.2), Node-RED (9.2.0), InfluxDB (4.1.1), Let’s Encrypt (4.11.0), Mosquitto broker (6.0.1), Samba share (9.5.1), Telegraf (0.6.0), MariaDB (2.4.0), AppDaemon 4 (0.6.2)
Lovelace
dashboards 1
resources 11
views 5
mode yaml
Spotify
api_endpoint_reachable ok

Checklist

  • I’m running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/issues
  • This issue is related to the backend (integration part) of HACS.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

HACS is not working with HA 2021.7.1 raising an error with ACCEPT_HEADERS in aiogithubapi, however v21.4.0 is installed using pip and I can see it in /usr/lib/python3.9/site-packages, unfortunately it is not loading successfully.

Reproduction steps

  1. Remove HACS folder and integration from the UI
  2. Reboot the server
  3. Install latest version of HACS following the instructions published on HACS website
  4. Try to launch the configuration flow for HACS integration from the UI, error is raised

Debug logs

Logger: homeassistant.config_entries
Source: config_entries.py:698

Error occurred loading configuration flow for integration hacs: cannot import name 'ACCEPT_HEADERS' from 'aiogithubapi.common.const' (/usr/local/lib/python3.9/site-packages/aiogithubapi/common/const.py)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ppoetsmacommented, Jul 11, 2021

I uninstalled HACS (and its modules, couple of restarts, etc). Next the module installation did not work, same problem as https://github.com/hacs/integration/issues/2089. I executed ha core rebuild and then the module could be installed and configured. My problem is solved. Thanks @ludeeus

1reaction
joselcaguilarcommented, Jul 12, 2021

I uninstalled HACS (and its modules, couple of restarts, etc). Next the module installation did not work, same problem as #2089. I executed ha core rebuild and then the module could be installed and configured. My problem is solved. Thanks @ludeeus

Issue resolved with ha core rebuild. thanks for your advice @ppoetsma 👍🏼

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup fails after new installation: module aiogithubapi missing
This is a new installation of hacs on a new installation of hassio 0.97.0. I installed using the terminal. When I checked the...
Read more >
Github rate limit error HACS - Configuration
Installed HACS yesterday and encountered the “HACS is disabled” warning. Restarted HA today and now the error is gone.
Read more >
Issues - HACS
Issues. First lets start out by stating that ALL issues should be reported here. What should be in the issue? When you create...
Read more >
HACS is starting up HACS is starting up, during this time some ...
UPDATE: I found the fix for this issue in this Github issue: in /config/custom_components/hacs/manifest.json, change "aiogithubapi>=21.2.0" ...
Read more >
How to use the aiogithubapi.GitHub function in ... - Snyk
To help you get started, we've selected a few aiogithubapi. ... hacs.logger.error( "Could not set logging level to debug, logger is not enabled"...
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