Failed to create 'tutor images build openedx' due to a change in the Django-Require repository

Hello everyone,

I am working with the openedx release nutmeg in the tutor.

i am trying to run tutor images build openedx and tutor dev quickstart.

it thows me an below error:

28.81   Resolved https://github.com/edx-solutions/xblock-google-drive.git to commit 2d176468e33c0713c911b563f8f65f7cf232f5b6
28.81   Preparing metadata (setup.py): started
29.58   Preparing metadata (setup.py): finished with status 'done'
29.58 Obtaining file:///openedx/edx-platform/common/lib/xmodule (from -r ./requirements/edx/base.txt (line 33))
29.58   Preparing metadata (setup.py): started
30.35   Preparing metadata (setup.py): finished with status 'done'
30.35 Collecting django-require@ git+https://github.com/edx/django-require.git@0c54adb167142383b26ea6b3edecc3211822a776
30.35   Cloning https://github.com/edx/django-require.git (to revision 0c54adb167142383b26ea6b3edecc3211822a776) to /tmp/pip-install-zk3cqi1a/django-require_13737be5c921441889b544acf20c5fdc
30.36   Running command git clone --filter=blob:none --quiet https://github.com/edx/django-require.git /tmp/pip-install-zk3cqi1a/django-require_13737be5c921441889b544acf20c5fdc
31.69   Running command git rev-parse -q --verify 'sha^0c54adb167142383b26ea6b3edecc3211822a776'
31.70   Running command git fetch -q https://github.com/edx/django-require.git 0c54adb167142383b26ea6b3edecc3211822a776
32.36   fatal: remote error: upload-pack: not our ref 0c54adb167142383b26ea6b3edecc3211822a776
32.36   fatal: the remote end hung up unexpectedly
32.38   error: subprocess-exited-with-error
32.38   
32.38   × git fetch -q https://github.com/edx/django-require.git 0c54adb167142383b26ea6b3edecc3211822a776 did not run successfully.
32.38   │ exit code: 128
32.38   ╰─> See above for output.
32.38   
32.38   note: This error originates from a subprocess, and is likely not a problem with pip.
32.38 error: subprocess-exited-with-error
32.38 
32.38 × git fetch -q https://github.com/edx/django-require.git 0c54adb167142383b26ea6b3edecc3211822a776 did not run successfully.
32.38 │ exit code: 128
32.38 ╰─> See above for output.
32.38 
32.38 note: This error originates from a subprocess, and is likely not a problem with pip.
32.39 WARNING: You are using pip version 22.0.4; however, version 24.0 is available.
32.39 You should consider upgrading via the '/openedx/venv/bin/python -m pip install --upgrade pip' command.
------
failed to solve: process "/bin/sh -c pip install -r ./requirements/edx/base.txt" did not complete successfully: exit code: 1

i tried below solutions:

  1. Apply patch which is given in this fix: Applied `django-require` package updates needed. · CUCWD/edx-platform@c9a27ed · GitHub discussion.
  2. remove django-require from the base.txt and other files too.

Both solutions will not worked for me.

Also below discussion i found:
https://discuss.openedx.org/t/django-require-change-repository/12483

please suggest some solutions.

Thanks in Advance :slightly_smiling_face:

A few days back I faced the same issue. I removed django-required from requirements txt files. Then I executed the below command to build the openedx image:

tutor images build openedx --build-arg EDX_PLATFORM_REPOSITORY=<My github repo URL> --build-arg EDX_PLATFORM_VERSION=<My new created branch> --no-cache

and it works for me.