Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error: pkg_resources #4

Open
rbubley opened this issue Feb 22, 2018 · 4 comments
Open

import error: pkg_resources #4

rbubley opened this issue Feb 22, 2018 · 4 comments

Comments

@rbubley
Copy link
Contributor

rbubley commented Feb 22, 2018

Using a fresh gae-init-debug, (pulling in latest changes from gae-init), I get the following error:

 -------------------------------------
       Local: http://localhost:3000
    External: http://192.168.1.80:3000
 -------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.1.80:3001
 -------------------------------------
INFO     2018-02-22 20:12:24,765 devappserver2.py:105] Skipping SDK update check.
INFO     2018-02-22 20:12:25,038 api_server.py:265] Starting API server at: http://localhost:61897
INFO     2018-02-22 20:12:25,140 dispatcher.py:255] Starting module "default" running at: http://127.0.0.1:8080
INFO     2018-02-22 20:12:25,149 admin_server.py:152] Starting admin server at: http://localhost:8081
ERROR    2018-02-22 20:12:29,552 wsgi.py:263] 
Traceback (most recent call last):
  File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/Users/russ/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/Users/russ/gae-init-debug/main/main.py", line 28, in <module>
    toolbar = flask_debugtoolbar.DebugToolbarExtension(app)
  File "lib/flask_debugtoolbar/__init__.py", line 53, in __init__
    loader=PackageLoader(__name__, 'templates'))
  File "/Users/russ/google-cloud-sdk/platform/google_appengine/lib/jinja2-2.6/jinja2/loaders.py", line 214, in __init__
    from pkg_resources import DefaultProvider, ResourceManager, \
ImportError: No module named pkg_resources
INFO     2018-02-22 20:12:29,583 module.py:835] default: "GET /_ah/warmup HTTP/1.1" 500 749
@lipis
Copy link
Member

lipis commented Feb 22, 2018

Haven't tested in a while.. :) Let me see..

@lipis
Copy link
Member

lipis commented Feb 22, 2018

#5 with a quick look not sure why?

@rbubley
Copy link
Contributor Author

rbubley commented Feb 22, 2018

I couldn’t immediately see if it was one of these changes or if it is some sort of environment change with the Google SDK.

@rbubley
Copy link
Contributor Author

rbubley commented Feb 23, 2018

Without figuring out why we are getting the error, I found that the error goes away if we copy pkg_resources.py into either main or main/lib. Any views on how/where you would like the file @lipis ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants