diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-06-01 10:49:48 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-01 10:52:21 -0700 |
commit | 46afa1f0e8a8b269054025aefe9a7d42290f8e8d (patch) | |
tree | 0849fef37bcefd3dd4216a0f3f0e4e5f6081efa0 /tensorflow/contrib/cluster_resolver | |
parent | 6b76b6453a268f874c189eb4843fbe1deee3ae5b (diff) |
Amend cluster resolver error to suggest oauth2client as a possible issue.
PiperOrigin-RevId: 198894470
Diffstat (limited to 'tensorflow/contrib/cluster_resolver')
-rw-r--r-- | tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py index 880fca4ea6..d44e23aadc 100644 --- a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py +++ b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py @@ -170,10 +170,11 @@ class TPUClusterResolver(ClusterResolver): if service is None and should_resolve: if not _GOOGLE_API_CLIENT_INSTALLED: - raise ImportError('googleapiclient must be installed before using the ' - 'TPU cluster resolver. Execute: `pip install ' - '--upgrade google-api-python-client` to install with ' - 'pip.') + raise ImportError('googleapiclient and oauth2client must be installed ' + 'before using the TPU cluster resolver. Execute: ' + '`pip install --upgrade google-api-python-client` ' + 'and `pip install --upgrade oauth2lclient` to ' + 'install with pip.') final_discovery_url = self._discoveryUrl() or discovery_url if final_discovery_url: |