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

config is not a dir #857

Closed
Jonathan-7 opened this issue Jun 24, 2019 · 4 comments
Closed

config is not a dir #857

Jonathan-7 opened this issue Jun 24, 2019 · 4 comments
Assignees

Comments

@Jonathan-7
Copy link

I tried installing via pip and when importing config got this error:
No name 'config' in module 'kubernetes'

So I removed it and tried installing from source and got this error:
error: supposed package directory 'kubernetes\config' exists, but is not a directory

PS C:\Users\username\Documents\res\git> git clone --recursive https://github.com/kubernetes-client/python.git
Cloning into 'python'...
remote: Enumerating objects: 42706, done.
remote: Total 42706 (delta 0), reused 0 (delta 0), pack-reused 42706
Receiving objects: 100% (42706/42706), 11.61 MiB | 4.88 MiB/s, done.
Resolving deltas: 100% (41250/41250), done.
Checking out files: 100% (2104/2104), done.
Submodule 'kubernetes/base' (https://github.com/kubernetes-client/python-base) registered for path 'kubernetes/base'
Cloning into 'C:/Users/username/Documents/res/git/python/kubernetes/base'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 440 (delta 0), reused 1 (delta 0), pack-reused 437
Receiving objects: 100% (440/440), 178.75 KiB | 1.22 MiB/s, done.
Resolving deltas: 100% (253/253), done.
Submodule path 'kubernetes/base': checked out '1d5231cee6d0674b958ad429b60dda39363a4dc1'
PS C:\Users\username\Documents\res\git> cd python
PS C:\Users\username\Documents\res\git\python> python setup.py install
C:\Users\username\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\dist.py:484: UserWarning: The version specified ('10.0.0-snapshot') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version
running install
running bdist_egg
running egg_info
creating kubernetes.egg-info
writing kubernetes.egg-info\PKG-INFO
writing dependency_links to kubernetes.egg-info\dependency_links.txt
writing requirements to kubernetes.egg-info\requires.txt
writing top-level names to kubernetes.egg-info\top_level.txt
writing manifest file 'kubernetes.egg-info\SOURCES.txt'
error: supposed package directory 'kubernetes\config' exists, but is not a directory

@micw523
Copy link
Contributor

micw523 commented Jul 30, 2019

/assign

@micw523
Copy link
Contributor

micw523 commented Jul 30, 2019

This is documented by #676. You should use the workaround provided by #766 on Windows systems when you clone from the source.
@roycaihw, I think it's safe to close this.

@roycaihw
Copy link
Member

/close

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

4 participants