Build issue 12.1.6

When running tutor images build openex I get the following error
Any ideas?

Step 70/85 : RUN ./manage.py lms --settings=tutor.i18n compilejsi18n
 ---> Running in 77f2ef10622b
Traceback (most recent call last):
  File "./manage.py", line 120, in <module>
    startup.run()
  File "/openedx/edx-platform/lms/startup.py", line 20, in run
    django.setup()
  File "/openedx/venv/lib/python3.8/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/config.py", line 94, in create
    module = import_module(entry)
  File "/opt/pyenv/versions/3.8.6/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 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/openedx/venv/lib/python3.8/site-packages/oauth2_provider/__init__.py", line 4, in <module>
    __version__ = pkg_resources.require("django-oauth-toolkit")[0].version
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (Django 1.11.29 (/openedx/venv/lib/python3.8/site-packages), Requirement.parse('django>=2.1'), {'django-oauth-toolkit'})
The command '/bin/sh -c ./manage.py lms --settings=tutor.i18n compilejsi18n' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:12.1.6 /home/sleep/.local/share/tutor/env/build/openedx

thanks @regis I resolved it for now with settings some user permissions error

Added the user to Sudo group

Hey Dennis! I’m very surprised that you solved this issue by adding your user to the sudo group. Instead, it looks like your error is caused by extra requirements that depend on conflicting versions of Django. There is a package in your Docker image which depends on Django 1.11.29, but Open edX Lilac uses 2.2.24. You should identify this package and either get rid of it or upgrade it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.