pyfacebook icon indicating copy to clipboard operation
pyfacebook copied to clipboard

AttributeError: 'module' object has no attribute 'new_wrapper'

Open funston opened this issue 14 years ago • 3 comments

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'

funston avatar Feb 19 '11 20:02 funston

http://groups.google.com/group/django-users/browse_thread/thread/aacde2dd52ebb641/cbb00b75a2bf6925?fwc=1

sagarun avatar Mar 16 '11 18:03 sagarun

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"

srinivak avatar May 22 '11 04:05 srinivak

Actually the import should be changed to

import django.utils.functional as decorator as functional.py is where the update_wrapper is defined

jinal avatar Jun 12 '11 21:06 jinal