0

I am trying to integrate and NoseGAE in a Python project.

Tried running:

nosetests tests --with-gae in virtualenv

ERROR: from oauth2client.contrib.appengine import AppAssertionCredentials ImportError: No module named contrib.appengine

The weird thing is it resolves everything else oauth2client, checks the contrib.appengine, and exits in the Python site-package.

bruntime
  • 371
  • 2
  • 13
Deadpool
  • 1
  • 1
  • Check your `sys.path`. Unfortunately the gcloud sdk provides `google-cloud-sdk/platform/google_appengine/lib/oauth2client/oauth2client/` which does not have `contrib` in it and it is probably in your path before the `oauth2client` in your site packages. – Josh J Mar 14 '16 at 15:08
  • Thanks that was it – Deadpool Mar 17 '16 at 22:11
  • I'll write it as an answer so you can accept it. – Josh J Mar 18 '16 at 13:20

1 Answers1

0

Check your sys.path. Unfortunately the gcloud sdk provides google-cloud-sdk/platform/google_appengine/lib/oauth2client/oauth2client/ which does not have contrib in it and it is probably in your path before the oauth2client in your site packages.

Josh J
  • 6,813
  • 3
  • 25
  • 47