GoogleCloudPlatform / gcs-oauth2-boto-plugin

Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage in the Boto library.
Apache License 2.0
21 stars 38 forks source link

Service account authentication requires PyOpenSSL. Please install this library and try again. #26

Closed doczoidberg closed 8 years ago

doczoidberg commented 8 years ago

My python scripts works as expected for about an hour or so. Then it gives me the error:

Service account authentication requires PyOpenSSL. Please install this library and try again.

"/usr/local/lib/python2.7/dist-packages/boto/storage_uri.py", line 342, in get_key generation=self.generation) File "/usr/local/lib/python2.7/dist-packages/boto/gs/bucket.py", line 108, in get_key query_args_l=query_args_l) File "/usr/local/lib/python2.7/dist-packages/boto/s3/bucket.py", line 200, in _get_key_internal query_args=query_args) File "/usr/local/lib/python2.7/dist-packages/boto/s3/connection.py", line 665, in make_request retry_handler=retry_handler File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 1071, in make_request retry_handler=retry_handler) File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 927, in _mexe request.authorize(connection=self) File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 377, in authorize connection._auth_handler.add_auth(self, **kwargs) File "/usr/local/lib/python2.7/dist-packages/gcs_oauth2_boto_plugin/oauth2_plugin.py", line 69, in add_auth self.oauth2_client.GetAuthorizationHeader() File "/usr/local/lib/python2.7/dist-packages/gcs_oauth2_boto_plugin/oauth2_client.py", line 345, in GetAuthorizationHeader return 'Bearer %s' % self.GetAccessToken().token File "/usr/local/lib/python2.7/dist-packages/gcs_oauth2_boto_plugin/oauth2_client.py", line 316, in GetAccessToken access_token = self.FetchAccessToken() File "/usr/local/lib/python2.7/dist-packages/gcs_oauth2_boto_plugin/oauth2_client.py", line 387, in FetchAccessToken credentials = self.GetCredentials() File "/usr/local/lib/python2.7/dist-packages/gcs_oauth2_boto_plugin/oauth2_client.py", line 432, in GetCredentials 'Service account authentication requires PyOpenSSL. Please install ' MissingDependencyError: Service account authentication requires PyOpenSSL. Please install this library and try again.

pyopenssl is installed and as said the script works for some time and then not any more. any ideas?

doczoidberg commented 8 years ago

with python 2.7.9+ I don't have these problems