-
Notifications
You must be signed in to change notification settings - Fork 48
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
Pydantic error using cos_agent in a machine charm #151
Comments
Also, in the error logs there is this message:
I set the suggested value:
But there is no resolution to the error. |
Possibly, this is due to some of my grafana-dashboards not being "correct" ?
|
I have found the issue resolution, which is that the requirements.txt for python needs to be pinning pydantic to < 2. This is important information and even more important to perhaps get a fix for since this will hit anyone trying to use the lib. |
I'm going through some code I've made some time ago to test the COS lite with machine charms.
https://github.com/erik78se/juju-operators-examples/tree/main/observed
After upgrading a previous build charm, using the cos_agent interface https://canonical.github.io/charm-relation-interfaces/interfaces/cos_agent/v0/
I strike an ERROR in the upgrade-hook.
unit-observed-1: 16:44:51 WARNING unit.observed/1.upgrade-charm If you got this error by calling handler() within
__get_pydantic_core_schema__
then you likely need to callhandler.generate_schema(<some type>)
since we do not call__get_pydantic_core_schema__
on<some type>
otherwise to avoid infinite recursion.Is this an error or am I doing something wrong?
The text was updated successfully, but these errors were encountered: