-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration installation fails in Home Assistant 2023.6: alexa_media: cannot import name 'formatargspec' from 'inspect' ( #1967
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello. Same issue on my side. HACS was installed from scratch. When trying to install the Alexa integration I'll get the following logs: Logger: homeassistant.config_entries Error occurred loading flow for integration alexa_media: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py) |
Hello, same issue on my side after updating the HA: Home Assistant 2023.6.3 Log: Error occurred loading flow for integration alexa_media: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py) |
Updated wrapt to the latest version and it fixed it for me. |
Similar issue not allowing installation because of alexapy 1.26.8, just modified that to 1.25.5 on |
Tried the modification of manifest.json and didn't work. |
On this line: |
just recently updated the everything from a very old version. its probably been about 2-3 years old. everything went fine except alexa media player. having similar issue, changed to 1.25.5. saved then rebooted but still does not work. |
same here.. |
Yesterday I did the update of HA and I could reinstall it and now works good. Supervisor 2023.08.1 |
still same issue...I think is something with my host OS or docker version..I bring my HA from an old 2021 version to this one, after a traumatic upgrade this damn integration is the only one missing!...I don't want to star over just because of this one... core-2023.8.1 I can't remove the integration can someone explain me how?...even removing the folder inside custom_components and the integration still show up...anyway I manually delete the folder, reboot, reinstall the integration and the issue still persist, same message: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py) Any ideas what else to check or what other folder/file/thing can I try to delete to "refresh" HA and allow this thing to install? Thanks!! |
...in my case the fix was really weird, I leave it here in case someone else want to try it... It seems that the "formatargspec" thing that need to be in inspect.py is not..or something like that...after finding a simillar issue but with other project I found that it was somehow related to the "wrapt" library....I connect to the dock container and did an update: pip install --upgrade wrapt After that the integration aske me to re-configure the integration and they start working again... P.S: to connect to the docker container: docker exec -it $(docker ps -f name=homeassistant -q) bash |
This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed automatically. |
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
After downloading the Alexa Media Player repository in HACS, restarting and clicking on the add integration button, an error pops up: "Config flow could not be loaded: {"message":"Invalid handler specified"}". Looking at the logs, the integration appears to fail to install due to this error: "ImportError: cannot import name 'formatargspec' from 'inspect'".
To Reproduce
Expected behavior
Integration would get installed.
Screenshots
N/A
System details
const.py
or HA startup): 4.6.4pip show alexapy
or HA startup): 1.26.8Logs
Please provide logs.
2023-06-18 21:06:37.852 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration alexa_media: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py)
Additional context
Home Assistant 2023.6 appears to have upgraded Python to 3.11. Could it be related?
The text was updated successfully, but these errors were encountered: