Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
funston opened this issue Feb 19, 2011 · 3 comments
Open

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

funston opened this issue Feb 19, 2011 · 3 comments

Comments

@funston
Copy link

funston commented Feb 19, 2011

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'

@srinivak
Copy link

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"

@jinal
Copy link

jinal commented Jun 12, 2011

Actually the import should be changed to

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants