Monday, February 8, 2016

WeakMethod import error in Django 1.9 with python 3.3

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c9ed00b5-a8e3-474b-b76c-37a753f653fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment