-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
HA fails to load zwave_js, pydantic says "TypeError: Argument 'bases' has incorrect type (expected list, got tuple)" #101525
Comments
Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) zwave_js documentation |
Seems like you are running a newer version of Pydantic than was pinned in the Home Assistant project, or, looks like you have cython 3 in your Python environment, which has a known issue with Pydantic at this point (see: pydantic/pydantic#7689) ../Frenck |
That's strange. I found the issue report for pydantic, too, but so far I don't see where that would be coming into my setup. As mentioned in the description, I have the pydantic version that HA prefers:
(The "py3.11" portion of the prompt is the virtualenv name.) ...and at least as far as I can tell I don't have Cython installed. Neither
|
As Workaround, after testing several versions of pydantic, my HA running well with pydantic 1.10.10 $ pip install pydantic==1.10.10 |
Good find! pydantic 1.10.10 works for me, too. So I suspect HA may need to be pinned to that version instead? 🤔 (At least until pydantic is fixed, that is.) |
Sorry for the newbie question but are you able to direct me on how / where I would go about rolling back to pydantic 1.10.10 so I could use this fix for the short term? (I see the code above but have no idea where this would go) , using raspberry pi3, home assistant core-2023.10.1 |
Found a solution to have pydantic-1.10.12 working as HA requirement. Stop HA $ sudo -u homeassistant -s -H Start HA |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
Home Assistant fails to load the zwave_js extension because pydantic is unhappy (see Python traceback in the respective field below).
What version of Home Assistant Core has the issue?
core-2023.10.0
What was the last working version of Home Assistant Core?
core-2023.05.x (the last one I got working on Debian 11)
What type of installation are you running?
Home Assistant Core
Integration causing the issue
zwave_js
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zwave_js/
Diagnostics information
home-assistant_2023-10-06T10-14-27.889Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
botocore
was applied (module 'urllib3.util' has no attribute 'PROTOCOL_TLS' #95192)The text was updated successfully, but these errors were encountered: