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

Unable to prepare setup for platform ezviz_cloud.button: Platform not found #122

Open
adidash opened this issue May 31, 2023 · 4 comments
Open
Labels
help wanted Extra attention is needed

Comments

@adidash
Copy link

adidash commented May 31, 2023

Hi!
Since the lastes HA OS update, (2 days) I found this error:

Logger: homeassistant.setup
Source: setup.py:348
First occurred: 21:41:26 (2 occurrences)
Last logged: 21:41:26

Unable to prepare setup for platform ezviz_cloud.button: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).
Unable to prepare setup for platform ezviz_cloud.light: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).

and, the full log error:

2023-05-31 21:40:20.017 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration ezviz_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-31 21:41:26.477 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.button: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).
2023-05-31 21:41:26.497 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.light: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).

My config is:

Home Assistant 2023.5.4
Supervisor 2023.04.1
Operating System 10.2
Interface utilisateur : 20230503.3 - latest

thanks

@RenierM26
Copy link
Owner

Hi @adidash,

For some reason your HA install isn't updating the pyezviz dependency to the latest version. Could be connectivity problems after your last HA restart? You could try restarting again and looking for an entry in the logs that says something like
"Attempting to install pyezviz". If that fails then it might point you in direction of why.

@adidash
Copy link
Author

adidash commented Jun 7, 2023

Hi @RenierM26
I' don't have any log like "install pyezviz" or or something else.
I found some logs linked to the error. therfore entier logs with "pyezviz"

2023-06-05 22:36:41.854 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.button: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).
2023-06-05 22:36:41.882 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.light: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).
2023-06-05 22:36:41.895 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.number: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constants' (/usr/local/lib/python3.10/site-packages/pyezviz/constants.py)).
2023-06-05 22:36:41.922 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform ezviz_cloud.siren: Platform not found (cannot import name 'SupportExt' from 'pyezviz' (/usr/local/lib/python3.10/site-packages/pyezviz/__init__.py)).

File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status
File "/usr/local/lib/python3.10/site-packages/pyezviz/client.py", line 523, in load_cameras
File "/usr/local/lib/python3.10/site-packages/pyezviz/camera.py", line 141, in status

@adidash
Copy link
Author

adidash commented Jul 2, 2023

hi @RenierM26 !
new month, new HA update (s) and ha-ezviz updates but errors are same :/

@RenierM26
Copy link
Owner

RenierM26 commented Jul 2, 2023

Hi Adidash,

zviz_cloud.number: Platform not found (cannot import name 'SupportExt' from 'pyezviz.constant

This can only happen if your instance is not updating the pyezviz library. Don't know why or how you are running this but it could be the following:

  1. If you are modifying file and not installing via HACS then you might have missed the manifest file or you have duplicate instances with the same domain.

Try running pip install --upgrade pyezviz manually. You should get "Successfully installed pyezviz-0.2.1.7"

@RenierM26 RenierM26 added the help wanted Extra attention is needed label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants