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

fix(components): Disable cache_discovery in GCP component. #5058

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

chensun
Copy link
Member

@chensun chensun commented Jan 29, 2021

This can fix the import error seen in post-submit tests (once released the container image).

sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	WARNING:googleapiclient.discovery_cache:file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	Traceback (most recent call last):
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery_cache/__init__.py", line 36, in autodetect
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	    from google.appengine.api import memcache
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	ModuleNotFoundError: No module named 'google.appengine'
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	During handling of the above exception, another exception occurred:
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	Traceback (most recent call last):
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in <module>
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	    from oauth2client.contrib.locked_file import LockedFile
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	ModuleNotFoundError: No module named 'oauth2client.contrib.locked_file'
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	During handling of the above exception, another exception occurred:
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	Traceback (most recent call last):
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in <module>
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	    from oauth2client.locked_file import LockedFile
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	ModuleNotFoundError: No module named 'oauth2client.locked_file'
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	During handling of the above exception, another exception occurred:
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	Traceback (most recent call last):
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery_cache/__init__.py", line 41, in autodetect
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	    from . import file_cache
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in <module>
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	    'file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth')
sample-test-khpbv-717493055: xgboost-trainer-74ttn.onExit:	ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth

Fixing part of #5007

@numerology
Copy link

/lgtm
/approve

Thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun, numerology

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun, numerology

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot
Copy link

@chensun: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
kubeflow-pipelines-tfx-python36 50e5762 link /test kubeflow-pipelines-tfx-python36

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. I understand the commands that are listed here.

@chensun
Copy link
Member Author

chensun commented Jan 29, 2021

kubeflow-pipelines-tfx-python36 failures has nothing to do with this PR, and it tracked by #5049.

Ignoring the failure and submitting.

@chensun chensun merged commit 48a34e6 into kubeflow:master Jan 29, 2021
@chensun chensun deleted the fix-discovery-cache branch January 29, 2021 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants