Error upgrading from redwood to sumac - no module named search.meilisearch

Hi,

I am running the upgrade from redwood to sumac following the instructions described on the tutor user guide: Installing Tutor — Tutor documentation

After running successfully the commands:

tutor config save
tutor images build all # list the images that should be rebuilt here
tutor local upgrade --from=redwood

I got an error when running:

tutor local launch

The error on the backlog is:

moduleNotFoundError: No module named 'search.meilisearch

I understand the changes from elasticsearch to meilisearch on this release of OpenedX, but I don’t know if I should upgrade sometime else on my own images.

I got some plugins and custom mfe running on my website.

I appreciate your help,

I’m attaching more details about the error I’m getting:
´

ModuleNotFoundError: No module named 'search.meilisearch'
Error: Command failed with status 1: docker compose -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.yml -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/ubuntu/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
dockerize -wait tcp://mongodb:27017 -timeout 20s

echo "Loading settings $DJANGO_SETTINGS_MODULE"

./manage.py lms migrate

# Create meilisearch indexes
./manage.py lms shell -c "import search.meilisearch; search.meilisearch.create_indexes()"

Thanks for your comments,

Hi. Can you check if the openedx image was built correctly? The module error should not come as the requirements get installed as part of image build.

Hi Syed,

At first I got my customized openedx mounted. The tutor images build openedx worked fine, but the tutor local launch failed.

Then, I unmounted my openedx image, run tutor images build openedx and then tutor local launch, and it worked without errors.

I guess, it should have to be something on my customized image. I will check the difference or manually upgrade the changes made.

Do you have any idea that could be causing the error with the mount?

I got a local mounted openedx image. I have unmounted and then I was able to run

I rarely work with tutor directly, but may be the issue is that when you mount edx-platform for development, you need to build openedx-dev? Tutor docs.

Also, you can try fixing this by starting the lms container, starting a shell in it and running something like make requirements manually.