Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Latest version of kubernetes python module doesn't work in kubeless functions #11

Open
tompizmor opened this issue Sep 5, 2017 · 0 comments

Comments

@tompizmor
Copy link
Contributor

After installing the latest kubernetes python module (3.0.0), when the function is going to load it, it throws this error:

Traceback (most recent call last):
  File "/kubeless.py", line 10, in <module>
    '/kubeless/%s.py' % os.getenv('MOD_NAME'))
  File "/kubeless/tweet.py", line 4, in <module>
    from kubernetes import client, config
  File "/opt/kubeless/pythonpath/lib/python2.7/site-packages/kubernetes/__init__.py", line 16, in <module>
    import kubernetes.config
  File "/opt/kubeless/pythonpath/lib/python2.7/site-packages/kubernetes/config/__init__.py", line 17, in <module>
    from .kube_config import (list_kube_config_contexts, load_kube_config,
  File "/opt/kubeless/pythonpath/lib/python2.7/site-packages/kubernetes/config/kube_config.py", line 21, in <module>
    import google.auth
ImportError: No module named google.auth

Manually installing the module google.auth module with this command pip install google.auth makes the function to work but adding that module to the requirements.txt file for a function does not solve the issue.

The kubernetes module 2.0.0 version works fine.

aweis89 pushed a commit to aweis89/functions that referenced this issue Oct 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant