title: Wrong dependency in Google Cloud SDK for google-auth?
body: <p>i am using google cloud storage and google cloud datastore api (locally, for now), in a Standard Environment app.</p>
  
  <p>I am having a very weird behaviour trying to running my tests (with pytest): i have discovered that, during tests, the <code>dev_appserver.fix_sys_path</code> command run by <code>pytest-beds</code> that i am using (<a href="https://github.com/kaste/pytest-beds/blob/master/testbeds/plugin.py#L35" rel="noreferrer">https://github.com/kaste/pytest-beds/blob/master/testbeds/plugin.py#L35</a>) puts the bundled google-cloud libraries before my custom versions:</p>
  
  <pre><code>/Users/username/google-cloud-sdk/platform/google_appengine
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/antlr3
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/fancy_urllib
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/ipaddr
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/yaml-3.10
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/rsa
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/pyasn1
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/pyasn1_modules
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/httplib2
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/oauth2client_devserver
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/six-1.9.0
  /Users/username/google-cloud-sdk/platform/google_appengine
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/simplejson
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/django-1.4
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/endpoints-1.0
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/jinja2-2.6
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/protorpc-1.0
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/PyAMF-0.6.1
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/markupsafe-0.15
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/webob-1.2.3
  /Users/username/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.2
  /Users/username/dev/project
  /Users/username/.virtualenvs/project/bin
  /Users/username/dev/project/app
  /Users/username/.virtualenvs/project/lib/python27.zip
  /Users/username/.virtualenvs/project/lib/python2.7
  /Users/username/.virtualenvs/project/lib/python2.7/plat-darwin
  /Users/username/.virtualenvs/project/lib/python2.7/plat-mac
  /Users/username/.virtualenvs/project/lib/python2.7/plat-mac/lib-scriptpackages
  /Users/username/.virtualenvs/project/Extras/lib/python
  /Users/username/.virtualenvs/project/lib/python2.7/lib-tk
  /Users/username/.virtualenvs/project/lib/python2.7/lib-old
  /Users/username/.virtualenvs/project/lib/python2.7/lib-dynload
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
  /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
  /Users/username/.virtualenvs/project/lib/python2.7/site-packages
  </code></pre>
  
  <p>This causes the import of <code>google.auth.crypt.base</code> module import to fail, because it does <em>not</em> exist in the package version shipped with google-cloud-sdk, while i can see that version 1.3.0 on github, that is apparently the same version of the one shipped with the sdk, does.</p>
  
  <p>Same for <code>pyasn1_modules</code> package: version 0.2.1 existing, shipped 0.11</p>
  
  <p>The import errors I am having are:</p>
  
  <pre><code>from google.auth.crypt import base
  ImportError: cannot import name base
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>from pyasn1_modules import pem
  ImportError: cannot import name pem
  </code></pre>
  
  <p>Last, but not least, the environment: MACOSX.</p>
  
  <pre><code>Google Cloud SDK 184.0.0
  app-engine-python 1.9.65
  app-engine-python-extras 1.9.63
  beta 2017.09.15
  bq 2.0.28
  cloud-datastore-emulator 1.3.0
  core 2018.01.05
  gcloud
  gsutil 4.28
  </code></pre>
  
  <p>UPDATE: apparently, i was using the <code>google.cloud.storage</code> while instead i should be using, according to the examples for standard environment (<a href="https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/storage/appengine-client/main.py#L23" rel="noreferrer">https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/storage/appengine-client/main.py#L23</a>), the package <code>cloudstorage</code>. I will change the code, try and update the post here.</p>
  
  <p><strong>UPDATE 2</strong>: i have created a specific github repo that should replicate the problem, just in case. Here it is:</p>
  
  <p><a href="https://github.com/brunoripa/gae_import_error" rel="noreferrer">https://github.com/brunoripa/gae_import_error</a></p>