Skip to content
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

[BUG] apps won't load due to missing module "typing_extension" #191

Closed
Crocmagnon opened this issue Dec 5, 2020 · 4 comments
Closed

[BUG] apps won't load due to missing module "typing_extension" #191

Crocmagnon opened this issue Dec 5, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Crocmagnon
Copy link
Contributor

Crocmagnon commented Dec 5, 2020

Bug report

Description

ControllerX apps don't load because of a missing module (typing_extensions, see the logs below).

Additional information

  • Devices involved:
    • Model: Legrand 600083 as Light controller
  • Integration: zha
  • AppDaemon version: 4.0.3
  • ControllerX version: 4.2.0
  • HACS version (if installed from there): 1.6.2
  • Home Assistant Core version: 0.118.4

AppDaemon app configuration

bureau:
  module: controllerx
  class: Legrand600083LightController
  controller: 00:04:74:00:00:ad:38:38
  integration: zha
  light: light.bureau

Logs

Traceback (most recent call last):
Dec 05 15:51:56 architect appdaemon[31050]:   File "/srv/appdaemon/lib/python3.7/site-packages/appdaemon/app_management.py", line 820, in check_app_updates
Dec 05 15:51:56 architect appdaemon[31050]:     await self.init_object(app)
Dec 05 15:51:56 architect appdaemon[31050]:   File "/srv/appdaemon/lib/python3.7/site-packages/appdaemon/app_management.py", line 271, in init_object
Dec 05 15:51:56 architect appdaemon[31050]:     modname = await utils.run_in_executor(self, __import__, app_args["module"])
Dec 05 15:51:56 architect appdaemon[31050]:   File "/srv/appdaemon/lib/python3.7/site-packages/appdaemon/utils.py", line 276, in run_in_executor
Dec 05 15:51:56 architect appdaemon[31050]:     response = future.result()
Dec 05 15:51:56 architect appdaemon[31050]:   File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
Dec 05 15:51:56 architect appdaemon[31050]:     result = self.fn(*self.args, **self.kwargs)
Dec 05 15:51:56 architect appdaemon[31050]:   File "/home/homeassistant/.homeassistant/appdaemon/apps/controllerx/controllerx.py", line 6, in <module>
Dec 05 15:51:56 architect appdaemon[31050]:     from cx_core import (
Dec 05 15:51:56 architect appdaemon[31050]:   File "/home/homeassistant/.homeassistant/appdaemon/apps/controllerx/cx_core/__init__.py", line 2, in <module>
Dec 05 15:51:56 architect appdaemon[31050]:     from cx_core.custom_controller import (
Dec 05 15:51:56 architect appdaemon[31050]:   File "/home/homeassistant/.homeassistant/appdaemon/apps/controllerx/cx_core/custom_controller.py", line 3, in <module>
Dec 05 15:51:56 architect appdaemon[31050]:     from cx_core.type.light_controller import LightController
Dec 05 15:51:56 architect appdaemon[31050]:   File "/home/homeassistant/.homeassistant/appdaemon/apps/controllerx/cx_core/type/light_controller.py", line 14, in <module>
Dec 05 15:51:56 architect appdaemon[31050]:     from typing_extensions import Literal
Dec 05 15:51:56 architect appdaemon[31050]: ModuleNotFoundError: No module named 'typing_extensions'

Additional Context

Add any other context or screenshots about the bug here.

@Crocmagnon Crocmagnon added the bug Something isn't working label Dec 5, 2020
@Crocmagnon
Copy link
Contributor Author

Installing typing_extensions in the virtualenv where appdaemon is installed works around this issue.

@xaviml
Copy link
Owner

xaviml commented Dec 5, 2020

Hi @Crocmagnon,

Thank you for reporting this. In fact, I changed this in the dev branch, I will deploy the fix later. Did you install AppDaemon with docker? Which Python version are you using?

Regards,
Xavi M.

@xaviml
Copy link
Owner

xaviml commented Dec 5, 2020

Hi @Crocmagnon,

This has been fixed in ControllerX v4.2.1.

Regards,
Xavi M.

@xaviml xaviml closed this as completed Dec 5, 2020
@Crocmagnon
Copy link
Contributor Author

Did you install AppDaemon with docker?

No

Which Python version are you using?

3.7.3

This has been fixed in ControllerX v4.2.1.

Thanks for your quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants