WeakMethod import error in Django 1.9 with python 3.3

42 views
Skip to first unread message

Mohammad Asif

unread,
Feb 9, 2016, 5:49:41 AM2/9/16
to Django users
Hello,

I'm using django 1.9.1 with python 3.3.
Whenever I'm running manage.py runserver, I'm getting following error.

File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/django/dispatch/__init__.py", line 9, in <module>

from django.dispatch.dispatcher import Signal, receiver # NOQA

File "/home/travis/virtualenv/python3.3.5/lib/python3.3/site-packages/django/dispatch/dispatcher.py", line 14, in <module>

from weakref import WeakMethod

ImportError: cannot import name WeakMethod


As I was reading WeakMethod of weakref has been introduced in python 3.4, and its not exist in weakref of python 3.3.


Any suggestions on how to fix the same error with python 3.3.



Regards,

Asif

Tim Graham

unread,
Feb 9, 2016, 7:02:40 AM2/9/16
to Django users
As noted in the Django 1.9 release notes, "Django 1.9 requires Python 2.7, 3.4, or 3.5."
Reply all
Reply to author
Forward
0 new messages