Skip to content
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

Cannot import KubeConfig #15

Open
garyyang6 opened this issue Dec 27, 2022 · 0 comments
Open

Cannot import KubeConfig #15

garyyang6 opened this issue Dec 27, 2022 · 0 comments

Comments

@garyyang6
Copy link

I ran the sample code,

from kubeconfig import KubeConfig

conf = KubeConfig()
conf.set_context('new-context', cluster='other-cluster', user='my-user')
conf.use_context('new-context')
print(conf.view())

I got,
ImportError: cannot import name 'KubeConfig' from partially initialized module 'kubeconfig' (most likely due to a circular import)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant