After installing TurboGears 1.0.4.4 on my system, my pyfacebook started to fail. The error was about simplejson missing some attribute.
Upon investigation, it turns out that installing TurboGears also installed json.py (from the yum package python-json), which doesn't have the attributes 'loads' and 'dumps'. So it appears that this json.py is not the same json that pyfacebook expects when doing 'import json as simplejson' in facebook/init.py.
The attached patch implements one possible way to fix this incompatibility; it tries simplejson.loads during the import step. Please review and, if it looks ok, apply it. Thanks.
Comment #1
Posted on Nov 8, 2009 by Grumpy LionCan we get this patch merged into the main release. Came across this same relative problem, and came to the same fix. Was about to report the issue and came across this ticket.
It also appears that 106 is the same issue.
Comment #2
Posted on Feb 21, 2010 by Helpful DogI've confirmed that this patch works. I've committed it to http://github.com/statico/pyfacebook and sent a pull request.
Status: New
Labels:
Type-Defect
Priority-Medium