Hi Neal You will need to actually install simplejson or put django.utils in to you sys.path What is probably happening inside jsonpickle is its trying to explicitly import one of a number of json parsers and can't find them (ie it doesn't know to import simplejson from django.utils.)
T On Aug 18, 3:29 am, NealWalters <nealwalt...@nealwalters.com> wrote: > I want to run this line of code: > > import jsonpickle > strPickledObject = jsonpickle.encode(objCommonTaskMessage) > > which works fine outside of GAE, but in GAE gets this error: > > File "d:\GoogleAppEngine\3WCloud.com.Provisioning\provisioning.py", > line 740, in get > strPickledObject = jsonpickle.encode(objCommonTaskMessage) > File "d:\GoogleAppEngine\3WCloud.com.Provisioning\jsonpickle > \__init__.py", line 258, in encode > return json.encode(j.flatten(value)) > File "d:\GoogleAppEngine\3WCloud.com.Provisioning\jsonpickle > \__init__.py", line 158, in encode > self._verify() > File "d:\GoogleAppEngine\3WCloud.com.Provisioning\jsonpickle > \__init__.py", line 106, in _verify > 'jsonpickle requires at least one of the following:\n' > AssertionError: jsonpickle requires at least one of the following: > cjson, json (new in python2.6), simplejson, demjson > > I tried "from django.utils import simplejson" but still getting same > error. > Any ideas please? > > Thanks, > Neal Walters --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---