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

webapp2 should be changed to use 'from google.appengine.ext.ndb import' #33

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I get the following stack when trying to use webapp2 installed in the GAE 
runtime because ndb is now at google.appengine.ext.ndb:

Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 168, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 217, in _LoadHandler
    __import__(cumulative_path)
  File "/base/data/home/apps/s~icronym/1.354797738693170194/qed4/icronym/service.py", line 10, in <module>
    from webapp2_extras.appengine.auth.models import User
  File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2_extras/appengine/auth/models.py", line 13, in <module>
    from ndb import model
ImportError: No module named ndb

Original issue reported on code.google.com by uvico...@gmail.com on 19 Nov 2011 at 11:01

@GoogleCodeExporter
Copy link
Author

Here's a patch that should change the two culprits

/webapp2_extras/appengine/auth/models.py
/webapp2_extras/appengine/sessions_ndb.py

Original comment by uvico...@gmail.com on 19 Nov 2011 at 11:20

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

dup: http://code.google.com/p/webapp-improved/issues/detail?id=29

Original comment by joernhees2 on 20 Nov 2011 at 4:24

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by bquin...@google.com on 5 Dec 2011 at 11:25

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant