Tuesday, February 9, 2016

Re: WeakMethod import error in Django 1.9 with python 3.3

As noted in the Django 1.9 release notes, "Django 1.9 requires Python 2.7, 3.4, or 3.5."

On Tuesday, February 9, 2016 at 5:49:41 AM UTC-5, Mohammad Asif wrote:
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/3952b48d-6bf0-40ee-a4bd-7194681a0cf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment