Skip to content

Cannot import KubeConfig #15

@garyyang6

Description

@garyyang6

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions