webapp2_extras sessions_ndb problem (appengine 1.6.1)

185 views
Skip to first unread message

Mariatta

unread,
Jan 20, 2012, 11:37:19 AM1/20/12
to google-a...@googlegroups.com
I'm using webapp2 framework that is shipped together with Google AppEngine 1.6.1
In webapp2_extras/appengine/sessions_ndb.py line 20 it reads:

from ndb import model

I wonder if this should have been:
 from google.appengine.ext.ndb import model

Because as I am trying to use the datastore as the sessions_backend in webapp2, it complains about ' no module named ndb found'

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? 

Brian Quinlan

unread,
Jan 21, 2012, 6:03:32 PM1/21/12
to google-a...@googlegroups.com
On Sat, Jan 21, 2012 at 3:37 AM, Mariatta <mwi...@vendasta.com> wrote:
> I'm using webapp2 framework that is shipped together with Google AppEngine
> 1.6.1
> In webapp2_extras/appengine/sessions_ndb.py line 20 it reads:
>
>> from ndb import model
>
>
> I wonder if this should have been:
>>
>>  from google.appengine.ext.ndb import model
>
>
> Because as I am trying to use the datastore as the sessions_backend in
> webapp2, it complains about ' no module named ndb 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.

Reply all
Reply to author
Forward
0 new messages