Wednesday, December 27, 2017

'module' object has no attribute 'lru_cache'


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
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,


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