-
Notifications
You must be signed in to change notification settings - Fork 47
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
Upgrade to 2024.10 causes Pyscript to not load #640
Comments
Pyscript has no such requirement as PyDictionary https://github.com/custom-components/pyscript/blob/master/custom_components/pyscript/manifest.json |
Thanks for the quick response. You are correct. This is what I have in requirements.txt:
Is there something I need to do to have these installed automatically when the new container is created? |
https://hacs-pyscript.readthedocs.io/en/stable/reference.html#importing starting from "Pyscript can install required Python packages if they are missing". and make sure the modules are installable on the server's Python version. |
Apologies for not being clear. The message above your response is the requirements.txt file I have in my HA /config/pyscript directory. This has worked great for a long time until 2024.10 install. It does not appear that this is operating as it did before. In fact, the container updated last night for the 2024.10.1 release and I am again getting the same error as the 'PyDictionary' module did not install via the requirements.txt. Hopefully I am not misunderstanding what you are telling me but it does appear that the packages listed in requirements.txt are not being installed when the container updates. |
I hate to try your patience, @ALERTua , but am I not doing what is shown in the docs? It is not working as it did previously where it would install these when necessary. |
I do think, that I have the same problem. I do have a The logs I see are:
|
Removing both the script and the 'PyDictionary' line from requirements.txt allows for the integration to load now. Fortunately I am not using that script and the dependency is not necessary for others but something is definitely weird. I do have 'wikipedia' as the only other line in requirements.txt so perhaps it is an issue with 'PyDictionary' specifically. |
There is definitely something wrong. Following the 2024.10 update my script is also not loading on startup, and it does not seem to be related to requirements.txt. My script, among other things, sets various input variables. When that script initializes on HA load, it throws an exception:
When I re-initialize this script a minute later by saving the file, it runs fine. I am not familiar with the inner workings of pyscript yet, but it appears to me that there is indeed a bug/race condition with loading other (core?) pyscript modules which declare the dependencies. |
I upgraded to 2024.10 and now I am getting errors loading Pyscript. The error I see in the log says:
Can someone tell me what I might do to repair this?
The text was updated successfully, but these errors were encountered: