from ndb import model
from google.appengine.ext.ndb import model
500 Internal Server Error import_string() failed for 'webapp2_extras.appengine.sessions_ndb.DatastoreSessionFactory'. Possible reasons are: - missing __init__.py in a package; - package or module path not included in sys.path; - duplicated package or module name taking precedence in sys.path; - missing module, class, function or variable; Original exception: ImportError: No module named ndb Debugged import: - 'webapp2_extras' found in '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2_extras/__init__.pyc'. - 'webapp2_extras.appengine' found in '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2_extras/appengine/__init__.py'. - 'webapp2_extras.appengine.sessions_ndb' not found.
webapp2 has not been updated since ndb was packaged as part of the App
Engine runtime and SDK.
For now you can download ndb yourself and put it in the root directory
of your application.
The next release of webapp2 should behave as you expect.
Cheers,
Brian
> Here's the full stack trace. I bold the part where I think the problem is
>
>> 500 Internal Server Error import_string() failed for
>> 'webapp2_extras.appengine.sessions_ndb.DatastoreSessionFactory'. Possible
>> reasons are: - missing __init__.py in a package; - package or module path
>> not included in sys.path; - duplicated package or module name taking
>> precedence in sys.path; - missing module, class, function or variable;
>> Original exception: ImportError: No module named ndb Debugged import: -
>> 'webapp2_extras' found in
>> '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2_extras/__init__.pyc'.
>> - 'webapp2_extras.appengine' found in
>> '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2_extras/appengine/__init__.py'.
>> - 'webapp2_extras.appengine.sessions_ndb' not found.
>
>
> Is it possible to have this updated properly?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/-XbP9mGoycQJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.