-
Notifications
You must be signed in to change notification settings - Fork 302
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
Unable to install Alexa integration #2771
Comments
This appears to be the same as issue #1330 What are the version numbers for
|
"After adding the repository in HACS and installing the integration via HA and error occurs." - Did you restart HA TWICE before trying to install the integration? |
|
With that now it finally works! Thank you very much! |
Describe the bug
Alexa integration can not be installed
To Reproduce
After adding the repository in HACS and installing the integration via HA and error occurs.
Expected behavior
Installation starts
Screenshots
System details
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8
const.py
or HA startup log): v5.2.0pip show alexapy
in homeasssistant container or HA startup log):Debug Logs (alexa_media & alexapy)
Please provide logs.
Additional context
Log1:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1271, in _load_platform
cache[full_name] = self._import_platform(platform_name)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1303, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
File "/usr/local/lib/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 1022, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/alexa_media/init.py", line 18, in
from alexapy import (
...<9 lines>...
)
File "/usr/local/lib/python3.13/site-packages/alexapy/init.py", line 17, in
from .alexaapi import AlexaAPI
File "/usr/local/lib/python3.13/site-packages/alexapy/alexaapi.py", line 24, in
from .alexalogin import AlexaLogin
File "/usr/local/lib/python3.13/site-packages/alexapy/alexalogin.py", line 76, in
class AlexaLogin:
...<1703 lines>...
self._headers.pop("Content-Type", None)
File "/usr/local/lib/python3.13/site-packages/alexapy/alexalogin.py", line 263, in AlexaLogin
def set_totp(self, otp_secret: str) -> Optional[pyotp.TOTP]:
^^^^^^^^^^
AttributeError: module 'pyotp' has no attribute 'TOTP'
Log2:
The text was updated successfully, but these errors were encountered: