Django 3 compatibility - ModuleNotFoundError: No module named 'django.utils.lru_cache'
See original GitHub issueIssue 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
- Create a new Django project, I used django-cookiecutter to startup.
- Add django-oscar to dependecies and install dependecies
- Add oscar settings to config.settings.base.py
- Add oscar apps (as from the getting started guide)
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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As yes, indeed it has. It has been released in version 2.1b. Will be releasing 2.1 stable in the next few days.
Waiting for the 2.1 stable release…