shazaman23 / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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

Attachments:

GoogleCodeExporter commented 8 years ago
dup: http://code.google.com/p/webapp-improved/issues/detail?id=29

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

GoogleCodeExporter commented 8 years ago

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