gae-init / gae-init-debug

Fork of gae-init with Flask-DebugToolbar and gae_mini_profiler
http://debug.gae-init.appspot.com
MIT License
16 stars 4 forks source link

Deployed app gives errors - ImportError: No module named pkg_resources #1

Closed rbubley closed 8 years ago

rbubley commented 8 years ago

I tried cloning the gae-init-debug, preparing it and deploying: git clone https://github.com/gae-init/gae-init-debug.git hello cd hello npm install gulp Checked that the webserver was running, and CTRL-C out of gulp gulp deploy --project=XXXXX

All appears to deploy correctly, and although there is a warning that some files were skipped, nothing looks odd.

But looking at the deployed app just has an error page:

Oh no...! Something went wrong :( Please check back in a bit.

And checking the logs on the google console I see

Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = import(path[0]) File "/base/data/home/apps/s~XXXXX/20160920t220813.395782788919194699/main.py", line 21, in toolbar = flask_debugtoolbar.DebugToolbarExtension(app) File "lib.zip/flask_debugtoolbar/init.py", line 53, in init loader=PackageLoader(name, 'templates')) File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/jinja2-2.6/jinja2/loaders.py", line 214, in init from pkg_resources import DefaultProvider, ResourceManager, \ ImportError: No module named pkg_resources