Build issue 12.1.6

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

Step 70/85 : RUN ./ lms --settings=tutor.i18n compilejsi18n
 ---> Running in 77f2ef10622b
Traceback (most recent call last):
  File "./", line 120, in <module>
  File "/openedx/edx-platform/lms/", line 20, in run
  File "/openedx/venv/lib/python3.8/site-packages/django/", line 27, in setup
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/openedx/venv/lib/python3.8/site-packages/django/apps/", line 94, in create
    module = import_module(entry)
  File "/opt/pyenv/versions/3.8.6/lib/python3.8/importlib/", 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/", line 4, in <module>
    __version__ = pkg_resources.require("django-oauth-toolkit")[0].version
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/openedx/venv/lib/python3.8/site-packages/pkg_resources/", 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 ./ lms --settings=tutor.i18n compilejsi18n' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t /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.