matterllo icon indicating copy to clipboard operation
matterllo copied to clipboard

ModuleNotFoundError: No module named 'django.utils.lru_cache'

Open LostGRad opened this issue 1 year ago • 6 comments

Hi, when i wanted build this project i got next error ModuleNotFoundError: No module named 'django.utils.lru_cache' on step python manage.py migrate Could you help me please?

LostGRad avatar Jul 11 '24 11:07 LostGRad

Hey @LostGRad

Thanks for your issue. Can you try to update this library django-crispy-forms to version >=1.8.1 pls

Lujeni avatar Jul 11 '24 18:07 Lujeni

Hey @Lujeni, do you mean in file requirements.txt, and re-config ?

LostGRad avatar Jul 12 '24 16:07 LostGRad

@LostGRad please first attempt to install this version using pip. Additionally, we will need to update and fix the requirements.txt file accordingly. :)

Lujeni avatar Jul 15 '24 08:07 Lujeni

Hi @Lujeni Now I got: ImportError: cannot import name 'six' from 'django.utils' (/root/matterllo/venv/lib/python3.9/site-packages/django/utils/__init__.py)

LostGRad avatar Jul 15 '24 12:07 LostGRad

@LostGRad I update the requirements on master branch (with crispy and six). Can you try again pls ?

Lujeni avatar Jul 17 '24 13:07 Lujeni

Hi @Lujeni I got error on step python manage.py runserver File "/root/matterllo/matterllo/wsgi.py", line 16, in <module> application = get_wsgi_application() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application return WSGIHandler() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 127, in __init__ self.load_middleware() File "/root/matterllo/venv/lib/python3.9/site-packages/django/core/handlers/base.py", line 58, in load_middleware mw_instance = middleware(adapted_handler) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/middleware.py", line 20, in __init__ super(WhiteNoiseMiddleware, self).__init__(None) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/django.py", line 39, in __init__ self.configure_from_settings(settings) File "/root/matterllo/venv/lib/python3.9/site-packages/whitenoise/django.py", line 49, in configure_from_settings self.charset = settings.FILE_CHARSET File "/root/matterllo/venv/lib/python3.9/site-packages/django/conf/__init__.py", line 83, in __getattr__ val = getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'FILE_CHARSET'

LostGRad avatar Jul 18 '24 08:07 LostGRad