You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'AdmissionregistrationV1ServiceReferenceDict' from partially initialized module 'kubernetes_typed.client' (most likely due to a circular import) (/home/user/repos/xxx/k8s-monitor/.venv/lib/python3.8/site-packages/kubernetes_typed/client/__init__.py)
The text was updated successfully, but these errors were encountered:
$ docker run --rm -it python:3-alpine sh -c 'pip install kubernetes-typed[client] && python -c "from kubernetes_typed.client import V1PodDict"'
Collecting kubernetes-typed[client]
...
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/kubernetes_typed/client/__init__.py", line 3, in <module>
from kubernetes_typed.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReferenceDict
File "/usr/local/lib/python3.11/site-packages/kubernetes_typed/client/models/__init__.py", line 4, in <module>
from kubernetes_typed.client.models.admissionregistration_v1_webhook_client_config import AdmissionregistrationV1WebhookClientConfigDict
File "/usr/local/lib/python3.11/site-packages/kubernetes_typed/client/models/admissionregistration_v1_webhook_client_config.py", line 5, in <module>
from kubernetes_typed.client import AdmissionregistrationV1ServiceReferenceDict
ImportError: cannot import name 'AdmissionregistrationV1ServiceReferenceDict' from partially initialized module 'kubernetes_typed.client' (most likely due to a circular import) (/usr/local/lib/python3.11/site-packages/kubernetes_typed/client/__init__.py)
I ran simple git bisect and it seems that this actually never worked 🤔
Hi there,
I'm getting the below error when using this:
The text was updated successfully, but these errors were encountered: