Tutor local launch fails with fork of quince.1

Hi. I want to run a fork of openedx quince.1 with tutor 17.0.0. I’ve set my repository and version using EDX_PLATFORM_REPOSITORY and EDX_PLATFORM_VERSION in tutor config. Then I build the openedx image by running tutor images build openedx and all is fine to this point. But when I launch the platform I get the error below:

[+] Running 1/1
 ✔ Container tutor_local-permissions-1  Started                                                                                                            0.4s 
2024/02/05 14:18:10 Ready: tcp://mysql:3306.
2024/02/05 14:18:10 Ready: tcp://mongodb:27017.
Loading settings lms.envs.tutor.production
Traceback (most recent call last):
  File "./manage.py", line 102, in <module>
    startup = importlib.import_module(edx_args.startup)
  File "/opt/pyenv/versions/3.8.18/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/openedx/edx-platform/lms/startup.py", line 10, in <module>
    settings.INSTALLED_APPS  # pylint: disable=pointless-statement
  File "/openedx/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 82, in __getattr__
    self._setup(name)
  File "/openedx/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 69, in _setup
    self._wrapped = Settings(settings_module)
  File "/openedx/venv/lib/python3.8/site-packages/django/conf/__init__.py", line 170, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/opt/pyenv/versions/3.8.18/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/openedx/edx-platform/lms/envs/tutor/production.py", line 157, in <module>
    from django.utils.deprecation import RemovedInDjango50Warning, RemovedInDjango51Warning
ImportError: cannot import name 'RemovedInDjango50Warning' from 'django.utils.deprecation' (/openedx/venv/lib/python3.8/site-packages/django/utils/deprecation.py)

Hi. Are you getting this error consistently? What django version is currently installed (tutor <dev/local> run lms pip show django)? This error usually stems from django version compatibility. Furthermore, what are the values for EDX_PLATFORM_REPOSITORY and EDX_PLATFORM_VERSION? How much level of customizations do they have?

Well this was my first attempt to run a fork of edx-platform. I tried a couple of times and yes every time it failed with the said error.

My repo is just a fork of edx-platform. Not matter what tag / version I try, I get the said error. Running the command you said, I get the output below.

Name: Django
Version: 3.2.23
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Home-page: https://www.djangoproject.com/
Author: Django Software Foundation
Author-email: foundation@djangoproject.com
License: BSD-3-Clause
Location: /openedx/venv/lib/python3.8/site-packages
Requires: asgiref, pytz, sqlparse
Required-by: django-appconf, django-celery-results, django-classy-tags, django-config-models, django-cors-headers, django-crum, django-fernet-fields-v2, django-filter, django-js-asset, django-method-override, django-model-utils, django-multi-email-field, django-mysql, django-oauth-toolkit, django-redis, django-sekizai, django-ses, django-splash, django-statici18n, django-storages, django-user-tasks, django-waffle, djangorestframework, done-xblock, drf-jwt, drf-nested-routers, drf-spectacular, drf-yasg, edx-ace, edx-api-doc-tools, edx-auth-backends, edx-bulk-grades, edx-celeryutils, edx-completion, edx-django-release-util, edx-django-sites-extensions, edx-django-utils, edx-drf-extensions, edx-enterprise, edx-event-bus-kafka, edx-event-bus-redis, edx-i18n-tools, edx-milestones, edx-name-affirmation, edx-organizations, edx-proctoring, edx-rbac, edx-search, edx-submissions, edx-toggles, edx-token-utils, edx-when, edxval, enmerkar, enmerkar-underscore, event-tracking, help-tokens, jsonfield, lti-consumer-xblock, openedx-blockstore, openedx-django-pyfs, openedx-django-wiki, openedx-events, openedx-filters, openedx-learning, ora2, super-csv, xss-utils