cloudnativelabs / kube-shell

Kubernetes shell: An integrated shell for working with the Kubernetes
Apache License 2.0
2.38k stars 174 forks source link

Getting Error object has no attribute 'RbacAuthorizationV1beta1Api' #54

Open mhobotpplnet opened 6 years ago

mhobotpplnet commented 6 years ago

Can't really say why this started happening all of the sudden. I do not remember updating/upgrading any python libs etc.. File "/usr/local/bin/kube-shell", line 11, in <module> load_entry_point('kube-shell==0.0.23', 'console_scripts', 'kube-shell')() File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 572, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point return ep.load() File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 2408, in load return self.resolve() File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 2414, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/Library/Python/2.7/site-packages/kubeshell/main.py", line 6, in <module> from kubeshell.kubeshell import Kubeshell File "/Library/Python/2.7/site-packages/kubeshell/kubeshell.py", line 11, in <module> from kubeshell.lexer import KubectlLexer File "/Library/Python/2.7/site-packages/kubeshell/lexer.py", line 8, in <module> class KubectlLexer(RegexLexer): File "/Library/Python/2.7/site-packages/kubeshell/lexer.py", line 12, in KubectlLexer completer = KubectlCompleter() File "/Library/Python/2.7/site-packages/kubeshell/completer.py", line 21, in __init__ self.kube_client = KubernetesClient() File "/Library/Python/2.7/site-packages/kubeshell/client.py", line 28, in __init__ self.rbacApi = client.RbacAuthorizationV1beta1Api() AttributeError: 'module' object has no attribute 'RbacAuthorizationV1beta1Api'

mhobotpplnet commented 6 years ago

Got it fixed. pip uninstall kube-shell then I installed it with pip3

That seem to work.