Hi Col, Can you try loading from CSV (eg, remove your generate_records method) and let us know if you see the same problem? Also, can you please include the complete stacktrace?
-Nick Johnson On Sat, Sep 19, 2009 at 12:28 PM, Col Wilson < col.wilson.em...@googlemail.com> wrote: > > loaders = [ThingLoader] > > is what I meant to type. > > On Sep 19, 10:14 am, Col Wilson <col.wilson.em...@googlemail.com> > wrote: > > I'm using Python 2.5 locally and GAE 1.5. > > > > I'm trying to load data which is not is CSV format. Here's a > > simplified model which reflects what I get with a more complex real > > life issue: > > > > class Thing(db.Model): > > name = db.StringProperty() > > > > class ThingLoader(bulkloader.Loader): > > elements = [ > > ('name', str) > > ] > > > > def __init__(self): > > bulkloader.Loader.__init__(self, 'Thing', self.elements) > > > > def generate_records(self, filename): > > records = load_records_from_some_datasource() > > for record in records: > > yield [ > > record['name'] > > ] > > > > loaders = [Thing] > > > > When I try to bulkload this (both locally or to google) I get: > > > > InternalError: Put accepted 10 entities but returned 0 keys. > > > > I can't work out why the datastore will not allocate keys. Any ideas > > what I should do? > > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---