Skip to content

11.0.0b1 fatal error - easy to reproduce #1008

Description

@consideRatio

Version 11.0.0b1 release less than a day ago has a fatal bug that is very simple to reproduce.

GIF of error

import-error

To reproduce the error

pip install kubernetes==11.0.0b1
ipython
import kubernetes

Error logs

(base) ➜  kubespawner git:(master) ipython
Python 3.7.3 (default, Mar 27 2019, 22:11:17) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import kubernetes                                              
-----------------------------------------------------------------------
ModuleNotFoundError                   Traceback (most recent call last)
<ipython-input-1-bd7671d07f00> in <module>
----> 1 import kubernetes

~/anaconda3/lib/python3.7/site-packages/kubernetes/__init__.py in <module>
     17 __version__ = "11.0.0b1"
     18 
---> 19 import kubernetes.client
     20 import kubernetes.config
     21 import kubernetes.watch

~/anaconda3/lib/python3.7/site-packages/kubernetes/client/__init__.py in <module>
     18 
     19 # import apis into sdk package
---> 20 from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi
     21 from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api
     22 from kubernetes.client.api.apiextensions_api import ApiextensionsApi

ModuleNotFoundError: No module named 'kubernetes.client.api'

Activity

  1. toshitanian commented on Nov 19, 2019

    @toshitanian

    Same error here.

  2. jinchihe commented on Nov 21, 2019

    @jinchihe

    This should be a P1 issue, any plan to fix this? Thanks @consideRatio

  3. tomplus commented on Nov 21, 2019

    @tomplus
    Member

    Thanks for reporting this. I've prepare a patch to fix it and for now please use the latest stable release.

  4. roycaihw commented on Nov 23, 2019

    @roycaihw
    Member

    This is fixed in 11.0.0b2. Thanks for reporting and fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions