AttributeError: 'module' object has no attribute 'new_wrapper'
boom:sciyoshi-pyfacebook-be8e843 rich$ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from facebook.djangofb import * Traceback (most recent call last): File "
", line 1, in File "init.py", line 490, in
File "init.py", line 489, in updater
AttributeError: 'module' object has no attribute 'new_wrapper'
http://groups.google.com/group/django-users/browse_thread/thread/aacde2dd52ebb641/cbb00b75a2bf6925?fwc=1
my django.utils.decorators had update_wrapper instead of new_wrapper. I replaced all the "new_wrappers" in facebook/djangofb init.py with "update_wrapper" and it worked. secondly It was trying to "import decorator" I had to change it to "import django.utils.decorators as decorator"
Actually the import should be changed to
import django.utils.functional as decorator as functional.py is where the update_wrapper is defined