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

incompatible with python 3 syntax #30

Closed kevhill closed 5 years ago

kevhill commented 7 years ago

version 1.14

>>> import gcs_oauth2_boto_plugin
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/gcs_oauth2_boto_plugin/__init__.py", line 26, in <module>
    from gcs_oauth2_boto_plugin import oauth2_plugin
  File "/usr/local/lib/python3.6/site-packages/gcs_oauth2_boto_plugin/oauth2_plugin.py", line 22, in <module>
    from gcs_oauth2_boto_plugin import oauth2_client
  File "/usr/local/lib/python3.6/site-packages/gcs_oauth2_boto_plugin/oauth2_client.py", line 125
    except KeyError, e:
                   ^
SyntaxError: invalid syntax
bharris47 commented 7 years ago

Experiencing same issue on CPython 3.5 on OS X Yosemite 10.10.5.

EmlynC commented 7 years ago

Same issue as #29, pull request #34 should address these issues.

houglum commented 5 years ago

Major version 2 introduced Py3 compatibility; closing this.