Wednesday, December 27, 2017

'module' object has no attribute 'lru_cache'

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

--
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/1cdaf2bc-ddb9-5940-ed33-4bfa162f439d%40yandex.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment