I'm using Google Cloud AppEngine based on the examples provided on Github I was testing the blobstore example but when I try to include the API google.cloud.speech in that example I get the error "No module named google.cloud.speech" but in the speech demo the same import it works.
dev_appserver.py app.yaml
In the speech demo when I include the import google.appengine.api I have the error No module named appengine.api, but the same import it works on the blobstore example.
python2.7 transcribeSpeech.py resources/audio.raw
First Error
ERROR 2018-01-17 12:07:09,600 wsgi.py:263]
Traceback (most recent call last):
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/home/user/src/project/python_gae_quickstart_editor-2018-01-14-21-40/appengine/standard/blobstore/gcs/main.py", line 13, in <module>
from google.cloud import speech
File "/google/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/sandbox.py", line 1147, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named google.cloud.speech
Second error:
Traceback (most recent call last):
File "transcribeSpeech.py", line 39, in <module>
import cloudstorage
File "/home/user/src/project/python_gae_quickstart_editor-2018-01-14-21-40/appengine/standard/blobstore/gcs/lib/cloudstorage/__init__.py", line 20, in <module>
from .api_utils import RetryParams
File "/home/user/src/project/python_gae_quickstart_editor-2018-01-14-21-40/appengine/standard/blobstore/gcs/lib/cloudstorage/api_utils.py", line 45, in <module>
from google.appengine.api import app_identity
ImportError: No module named appengine.apiv