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] module misspelled? #549

Closed
yankees5963 opened this issue Feb 16, 2024 · 4 comments
Closed

[Bug] module misspelled? #549

yankees5963 opened this issue Feb 16, 2024 · 4 comments
Labels
bug Something isn't working Stale

Comments

@yankees5963
Copy link

Home assistant updated and wyze integration no longer works. Says no. Module wyzeapy should it be wyzeapi?

Logger: homeassistant.setup
Source: setup.py:251
First occurred: 3:02:19 AM (1 occurrences)
Last logged: 3:02:19 AM

Setup failed for custom integration 'wyzeapi': Unable to import component: No module named 'wyzeapy'
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeassistant/setup.py", line 251, in _async_setup_component
    component = integration.get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/homeassistant/loader.py", line 827, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/wyzeapi/__init__.py", line 13, in <module>
    from wyzeapy import Wyzeapy
ModuleNotFoundError: No module named 'wyzeapy' 
@yankees5963 yankees5963 added the bug Something isn't working label Feb 16, 2024
@brg468
Copy link
Collaborator

brg468 commented Feb 16, 2024

Wyzeapy is another library that the integration uses, it’s not a misspelling. Since the latest HA version switched to Python 3.12 maybe that library didn’t get installed in the right place. I’d try removing the Wyze integration from HA and HACS and reinstalling and see if that fixes it.

@christophermichaelshaw
Copy link

Can confirm redownload/reinstall worked for me.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 18, 2024
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

3 participants