kyle.p
06/06/2023, 5:52 PMFile "/usr/local/lib/python3.9/site-packages/kubernetes/client/api_client.py", line 292, in __deserialize
klass = getattr(kubernetes.client.models, klass)
AttributeError: module 'kubernetes.client' has no attribute 'models'
I am running with an out of the box KubernetesJob
infra and everything was working up until the end of last week. The k8s pods are created and run just fine but Prefect throws this exception while reading the response from the k8s api.kyle.p
06/06/2023, 5:56 PMNate
06/06/2023, 7:15 PM❯ ipython
Python 3.11.0 | packaged by conda-forge | (main, Jan 14 2023, 12:25:12) [Clang 14.0.6 ]
In [1]: !pip list | rg kubernetes
kubernetes 26.1.0
In [2]: import kubernetes
In [3]: len(dir(kubernetes.client.models))
Out[3]: 1048
is that error being thrown by an agent running in your cluster?kyle.p
06/06/2023, 8:38 PM