Wednesday, December 27, 2017

Re: 'module' object has no attribute 'lru_cache'

OK, I've read the INSTALL file and noticed that Django dropped support
for Python 2.7.

Any reasons for dropping support for Python 2.7 in the first place ?

Regards,

Etienne


Le 2017-12-27 à 05:05, Etienne Robillard a écrit :
> Hi,
>
> I'm trying to upgrade my development server to Django 2.0 using
> setup.py develop command:
>
> erob@marina:~/ncvs/django$ sudo python setup.py develop
> Traceback (most recent call last):
>   File "setup.py", line 32, in <module>
>     version = __import__('django').get_version()
>   File "/home/erob/ncvs/django/django/__init__.py", line 1, in <module>
>     from django.utils.version import get_version
>   File "/home/erob/ncvs/django/django/utils/version.py", line 61, in
> <module>
>     @functools.lru_cache()
> AttributeError: 'module' object has no attribute 'lru_cache'
>
> Why does the setup.py script attempt to import the django package?
>
> Is it possible to upgrade Django from source when release 1.11.6 is
> already installed in /usr/local ?
>
> Thank you in advance,
>
> Etienne
>

--
Etienne Robillard
tkadm30@yandex.com
https://www.isotopesoftware.ca/

--
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/2a503d84-2c58-ecca-a8a0-aeef800f0487%40yandex.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment