shazaman23 / webapp-improved

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

Error after update NDB from 0.9.9 to 1.0 #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I updated NDB in the Application Google App Engine from 0.9.9 to 1.0 (Python 
2.7, webapp2 and Jinja2)
2. I removed NDB folder from root because now it is supported on the SDK 1.6.4
3. I run locally without Problem
4. I deployed and I had this problem:

Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 187, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 225, in _LoadHandler
    handler = __import__(path[0])
  File "/base/data/home/apps/s~sandengine/1.357817482208961853/main.py", line 21, in <module>
    import routes
  File "/base/data/home/apps/s~sandengine/1.357817482208961853/routes.py", line 8, in <module>
    from web.handlers import LoginHandler
  File "/base/data/home/apps/s~sandengine/1.357817482208961853/web/handlers.py", line 13, 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

5. I restored the NDB folder on the root of the project (now with 1.0 version) 
and is working pretty well.

Why I had this error, I would like to remove my NDB Folder and use the library 
provided for the SDK

What is the expected output? What do you see instead?
Without this error

What version of the product are you using? On what operating system?
GAE SDK 1.6.4

Please provide any additional information below.

This Boilerplate is using Jinja2, webapp2 and NDB 1.0

Original issue reported on code.google.com by rodrigo....@gmail.com on 28 Mar 2012 at 11:37

GoogleCodeExporter commented 8 years ago
This is the url of the project http://1.sandengine.appspot.com/

and this is the source code 
https://github.com/coto/gae-boilerplate/blob/master/README.rdoc

Original comment by rodrigo....@gmail.com on 28 Mar 2012 at 11:38

GoogleCodeExporter commented 8 years ago
Same issue for my app. 

Original comment by dmitryki...@gmail.com on 2 Apr 2012 at 1:16

GoogleCodeExporter commented 8 years ago
The solution is upgrade the version of webapp2 in the app.yaml
Now I'm using 2.5.1 and is working pretty well

Original comment by rodrigo....@gmail.com on 2 Apr 2012 at 2:37

GoogleCodeExporter commented 8 years ago
Super, thanks rodrigo!

Original comment by dmitryki...@gmail.com on 2 Apr 2012 at 5:53