@sarina Perfect!.
Well my team and I were trying to get up a new main environment on our computers and we found this issues:
- When tutor local/dev launch is building MFE images the process fail showing this(sorry I just have screenshots not the entire log):
*How did I fix it? I just disabled the Indigo plugin, and that was enough.
*
2. Then another thing failed showing:
File "/openedx/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 81, in __getattr__ self._setup(name) File "/openedx/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 68, in _setup self._wrapped = Settings(settings_module) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/openedx/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 166, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/pyenv/versions/3.11.8/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/openedx/edx-platform/lms/envs/tutor/development.py", line 113, in <module> INSTALLED_APPS.remove("lms.djangoapps.coursewarehistoryextended") ValueError: list.remove(x): x not in list
How did I fix it? I added this code at tutor/tutor/templates/apps/openedx/settings/partials/common_all.py#109
if "lms.djangoapps.coursewarehistoryextended" in INSTALLED_APPS: INSTALLED_APPS.remove("lms.djangoapps.coursewarehistoryextended")
3.Then I received this other related problem:
return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/openedx/edx-platform/lms/envs/tutor/development.py", line 115, in <module> DATABASE_ROUTERS.remove( ValueError: list.remove(x): x not in list exit status
How did I fix it? I added this code at tutor/tutor/templates/apps/openedx/settings/partials/common_all.py#111
if "openedx.core.lib.django_courseware_routers.StudentModuleHistoryExtendedRouter" in DATABASE_ROUTERS:
DATABASE_ROUTERS.remove( "openedx.core.lib.django_courseware_routers.StudentModuleHistoryExtendedRouter" )
- After that, I received this:
File "/opt/pyenv/versions/3.11.8/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/openedx/edx-platform/lms/envs/tutor/development.py", line 162, in <module>
from django.utils.deprecation import RemovedInDjango50Warning, RemovedInDjango51Warning
ImportError: cannot import name 'RemovedInDjango50Warning' from 'django.utils.deprecation' (/openedx/venv/lib/python3.11/site-packages/django/utils/deprecation.py)
And also received another one related to RemovedInDjango51Warning.
How did I fix it? I removed lines: 158 160 and 161 in tutor/tutor/templates/apps/openedx/settings/partials/common_all.py
After all this changes the tutor dev launch worked.
I think this is not the optimal behavior of tutor main so that’s why I considered to share it with you.
We were investigating this with @mgmdi
@tutor-maintainers