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

Support for google-apiclient 1.3.1 #28

Open
aahamlin opened this issue Jun 19, 2015 · 0 comments
Open

Support for google-apiclient 1.3.1 #28

aahamlin opened this issue Jun 19, 2015 · 0 comments

Comments

@aahamlin
Copy link

I just discovered this project yesterday. I am working through an example with latest Google appengine and over the last few years it appears that apiclient.oauth has been removed. Is my investigation correct?

The stacktrace I am getting using apiclient 1.3.1 is:

Traceback (most recent call last):
File "/home/andrew/src/aah-profile-report/engineauth/utils.py", line 29, in import_class
mod = import(path, fromlist=[klass])
File "/home/andrew/.eclipse/1712548941_linux_gtk_x86_64/plugins/org.python.pydev_4.0.0.201504132356/pysrc/pydev_monkey_qt.py", line 71, in patched_import
File "/home/andrew/src/aah-profile-report/engineauth/strategies/linkedin.py", line 5, in
from engineauth.strategies.oauth import OAuthStrategy
File "/home/andrew/.eclipse/1712548941_linux_gtk_x86_64/plugins/org.python.pydev_4.0.0.201504132356/pysrc/pydev_monkey_qt.py", line 71, in patched_import
File "/home/andrew/src/aah-profile-report/engineauth/strategies/oauth.py", line 2, in
from apiclient.oauth import FlowThreeLegged
File "/home/andrew/.eclipse/1712548941_linux_gtk_x86_64/plugins/org.python.pydev_4.0.0.201504132356/pysrc/pydev_monkey_qt.py", line 71, in patched_import
ImportError: No module named apiclient.oauth
ERROR 2015-06-19 01:19:42,085 cgi.py:122] Traceback (most recent call last):
File "/home/andrew/src/aah-profile-report/helloworld.py", line 34, in
main()
File "/home/andrew/src/aah-profile-report/helloworld.py", line 31, in main
run_wsgi_app(application)
File "/home/andrew/google-cloud-sdk/platform/google_appengine/google/appengine/ext/webapp/util.py", line 99, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
File "/home/andrew/google-cloud-sdk/platform/google_appengine/google/appengine/ext/webapp/util.py", line 117, in run_bare_wsgi_app
result = application(env, _start_response)
File "/home/andrew/src/aah-profile-report/engineauth/middleware.py", line 144, in call
strategy_class = self._load_strategy(provider)
File "/home/andrew/src/aah-profile-report/engineauth/middleware.py", line 164, in _load_strategy
"'provider.{0}' config dict".format(provider))
Exception

INFO 2015-06-19 01:19:42,142 module.py:790] default: "GET /auth/linkedin HTTP/1.1" 500 -

Notice the import error
ImportError: No module named apiclient.oauth

The current apiclient documentation (and library) make not mention of this package.
https://developers.google.com/api-client-library/python/guide/google_app_engine

Just wondering, if an update to engineauth in the works to support these changes or have I misunderstood something in my research?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant