Looks like this BadValueError is happening when the deserializer tries to parse the "data" field of the "sessions.session" model.
On Mar 24, 7:30 pm, Big Stu <[email protected]> wrote: > So, I editing the django1.0/core/serializers/python.py file to have > the changes mentioned in Issue 70 for Google App Engine Helper, and > I'm not getting this error: > > Installing json fixture 'data' from absolute path. > Problem installing fixture 'data.json': Traceback (most recent call > last): > File "/home/sadohert/development/google_ae/leagr_patch/common/zip- > packages/django-1.0.2.zip/django/core/management/commands/ > loaddata.py", line 116, in handle > for obj in objects: > File "/home/sadohert/development/google_ae/leagr_patch/common/zip- > packages/django-1.0.2.zip/django/core/serializers/json.py", line 41, > in Deserializer > for obj in PythonDeserializer(simplejson.load(stream)): > File "/home/sadohert/development/google_ae/leagr_patch/common/zip- > packages/django-1.0.2.zip/django/core/serializers/python.py", line > 119, in Deserializer > data[field.name] = field.validate(field_value) > File "/home/sadohert/development/google_ae/google_appengine/google/ > appengine/ext/db/__init__.py", line 1910, in validate > 'to a Blob instance (%s)' % (self.name, err)) > BadValueError: Property data must be convertible to a Blob instance > (Blob() argument should be str instance, not unicode) > > Could there be something wrong with my setup? Otherwise I would think > there would have been many complaints about this issue already. > On Mar 24, 12:42 pm, Big Stu <[email protected]> wrote: > > > I just found out how insanely easy it is to open, edit, and save a > > file within a zip file under vim. I came across it on this link: > > >http://blog.vorpal.cc/category/linux/vim-can-open-zip-files.html > > > On Mar 24, 12:34 pm, Big Stu <[email protected]> wrote: > > > > I'm working with the most recent GAE Patch but still seem to have the > > > problem. This issue here with GAE-Helper describes what I'm seeing > > > exactly: > > > > Issue 70: Deserializer does not decode datetime fields > > > properlyhttp://code.google.com/p/google-app-engine-django/issues/detail?id=70 > > > > Is there any convenient way I can setup my development environment so > > > django is used in its unzipped form? This way I can edit pieces and > > > see if that solves my problem, without having to unzip django1.0, make > > > the edit, and rezip? > > > > Thanks > > > > Stu > > > > On Mar 21, 7:08 am, Waldemar Kornewald <[email protected]> wrote: > > > > > On Mar 20, 3:31 pm, Big Stu <[email protected]> wrote: > > > > > > Hi Waldemar, > > > > > Thanks for following up, and thanks for all your hard work with App > > > > > Engine Patch. I'm having a lot of fun learning about app engine and > > > > > django in my spare time, and hope to one day move my full time career > > > > > into this stuff. Django, GAE, and your stuff will have a huge hand in > > > > > that. > > > > > > Anyway, the property I'm tryign to dump is DateTimeProperty: > > > > > date = db.DateTimeProperty() > > > > > That should work with the repository version. > > > > > Bye, > > > > Waldemar Kornewald --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
