Ask and ye shall receive. Attached is a patch for using friendfeed.py on Google App Engine. You need to also have demjson available. Google App Engine does not allow use of many C modules (like cjson) and both json and simplejson will throw decoding errors from time to time. demjson is slow but won’t throw errors around (I really wish we could use cjson; it’s so much faster).
Basically the differences are:
- Use urlfetch instead of urllib2
- Use Django’s urlencode which will work with unicode (letting you comment/share in languages like Chinese)
- Use demjson instead of cjson (which cannot be used on Google App Engine), simplejson, or json (which both throw decoding errors from time to time)
Enjoy!
Update:
You don’t need to use demjson anymore; simplejson will work just fine. I just got an email from Sanjeev saying that they fixed the issue (’\x’ is not valid JSON). This makes things even easier because simplejson is included in Django (from django.utils import simplejson) which is included in Google App Engine.

Add New Comment
Viewing 12 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks