shazaman23 / webapp-improved

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

ImportError: No module named ndb #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I downloaded webapp2-2.0.2.zip from 
http://code.google.com/p/webapp-improved/downloads/list.

Then I tryed launch example with sessions stored in datastore and got error:

<type 'exceptions.ImportError'>: No module named ndb
Traceback (most recent call last):
  File "/base/data/home/apps/s~projectedagae/1.352172280372792162/requesthandler.py", line 19, in <module>
    from webapp2_extras import sessions_ndb
  File "/base/data/home/apps/s~projectedagae/1.352172280372792162/webapp2_extras/sessions_ndb.py", line 16, in <module>
    from ndb import model

File with name ndb.py does not exist in webapp2_extras.

Original issue reported on code.google.com by nabokov.evgeni on 29 Jul 2011 at 1:02

GoogleCodeExporter commented 8 years ago
The datastore sessions module use ndb, which you must add to your project: 
http://code.google.com/p/appengine-ndb-experiment/

NDB will be part of the SDK in the upcoming months, but for now you must add it 
manually.

Original comment by rodrigo.moraes on 29 Jul 2011 at 10:24