> /path/to/project_root/site/apps/utils/transcription.py(5)<module>()
-> from google.cloud.speech import enums
< now that we're under wsgi.py's control, the same line breaks... >
(Pdb) c
ERROR 2019-04-18 00:13:23,980 wsgi.py:263]
Traceback (most recent call last):
File "/path/to/project_root/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/path/to/project_root/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/path/to/project_root/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
File "/path/to/project_root/site/wsgi.py", line 12, in <module>
application = DjangaeApplication(get_wsgi_application())
File "/path/to/project_root/site/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
django.setup(set_prefix=False)
File "/path/to/project_root/site/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/path/to/project_root/site/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
File "/path/to/project_root/site/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/path/to/project_root/site/apps/recordings/models.py", line 7, in <module>
from apps.utils import transcription
File "/path/to/project_root/site/apps/utils/transcription.py", line 5, in <module>
from google.cloud.speech import enums
File "/path/to/project_root/env/lib/python2.7/site-packages/google/cloud/speech.py", line 19, in <module>
from google.cloud.speech_v1 import SpeechClient
File "/path/to/project_root/env/lib/python2.7/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module>
from google.cloud.speech_v1.gapic import speech_client
INFO 2019-04-18 00:13:24,017 runserver.py:376] default: "GET / HTTP/1.1" 500 -
File "/path/to/project_root/env/lib/python2.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 18, in <module>
import pkg_resources
File "/path/to/project_root/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 1076, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named pkg_resources