question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Django 3 compatibility - ModuleNotFoundError: No module named 'django.utils.lru_cache'

See original GitHub issue

Issue Summary

module django.utils.lru_cache is not found, has been removed in Django 3.0 (https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis)

Steps to Reproduce

  1. Create a new Django project, I used django-cookiecutter to startup.
  2. Add django-oscar to dependecies and install dependecies
  3. Add oscar settings to config.settings.base.py
  4. Add oscar apps (as from the getting started guide)
  5. python manage.py runserver

Results in:

File "/usr/local/lib/python3.8/site-packages/oscar/config.py", line 9, in <module>
from oscar.core.application import OscarConfig
File "/usr/local/lib/python3.8/site-packages/oscar/core/application.py", line 5, in <module>
from oscar.core.loading import feature_hidden
File "/usr/local/lib/python3.8/site-packages/oscar/core/loading.py", line 9, in <module>
from django.utils.lru_cache import lru_cache
ModuleNotFoundError: No module named 'django.utils.lru_cache'

Technical details

  • Python version: 3.8
  • Django version: 3.0
  • Oscar version: 2.0.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
solarissmokecommented, Jun 23, 2020

As yes, indeed it has. It has been released in version 2.1b. Will be releasing 2.1 stable in the next few days.

0reactions
Qoyyuumcommented, Jul 6, 2020

Waiting for the 2.1 stable release…

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'django.utils .lru_cache' in Django 3.0 #956
You will need to upgrade to the latest version (1.8.1) to get Django 3.0 compatibility. 3
Read more >
Why am I getting No module named 'django.utils.lru_cache ...
I found an alternative hard coding with bootstrap since I couldn't find anyway to style using crispy-forms ''' from django import forms from ......
Read more >
modulenotfounderror: no module named 'django.utils.lru_cache'
In this section, we'll learn to resolve the modulenotfounderror: no module named 'django' in ubuntu. To resolve this error, you have to install...
Read more >
ImportError raised when try to load crispy_forms - Django Forum
ImportError raised when trying to load 'crispy_forms.templatetags.crispy_forms_field': No module named 'django.utils.lru_cache'.
Read more >
ModuleNotFoundError: No module named 'django.utils'
Hi, Am trying native installation of Kao-1. Repeatedly, installation is failing at the stage of: TASK [edx_django_service : migrate ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found