Wednesday, December 27, 2017

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

Hi Etienne,

Python 2.x will not receive any updates (security or otherwise) starting in 2020. Many projects are dropping python 2 support right now to allow people to have enough time to port their codebases to python 3.

From: <> on behalf of Etienne Robillard <>
Sent: Wednesday, December 27, 2017 8:18:35 AM
Subject: 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 ?



Le 2017-12-27 à 05:05, Etienne Robillard a écrit :
> Hi,
> I'm trying to upgrade my development server to Django 2.0 using
> develop command:
> erob@marina:~/ncvs/django$ sudo python develop
> Traceback (most recent call last):
>   File "", line 32, in <module>
>     version = __import__('django').get_version()
>   File "/home/erob/ncvs/django/django/", line 1, in <module>
>     from django.utils.version import get_version
>   File "/home/erob/ncvs/django/django/utils/", line 61, in
> <module>
>     @functools.lru_cache()
> AttributeError: 'module' object has no attribute 'lru_cache'
> Why does the 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

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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment