Hi all,
I am running tutor version 12.1.7 and I want to upgrade it to the latest version (13.1.0).
Following the official documentation, I run the following:
pip install --upgrade tutor[full]
tutor config save
tutor images build all
But at step 37/103 : RUN pip install -r ./requirements/edx/base.txt
of the command tutor images build all
I am encountering the following error:
Traceback (most recent call last):
File "/openedx/venv/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
File "/openedx/venv/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/openedx/venv/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/openedx/venv/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions
File "/openedx/venv/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module> from pip._internal.locations import USER_CACHE_DIR, get_src_prefix
File "/openedx/venv/lib/python3.8/site-packages/pip/_internal/locations/__init__.py", line 7, in <module>
from pip._internal.models.scheme import SCHEME_KEYS, Scheme
ImportError: cannot import name 'SCHEME_KEYS' from 'pip._internal.models.scheme' (/openedx/venv/lib/python3.8/site-packages/pip/_internal/models/scheme.py)
The command '/bin/sh -c pip install -r ./requirements/edx/base.txt' returned a non-zero code: 1
Error: Command failed with status 1: docker build -t docker.io/overhangio/openedx:13.1.0 /home/ubuntu/.local/share/tutor/env/build/openedx
So far, I have not seen this python error reported many times on forums. This post https://www.linuxquestions.org/questions/suse-opensuse-60/pip-cannot-import-name-scheme_key-4175702998/ suggests to upgrade pip but /openedx/venv/bin/pip seems to be downgraded by tutor one step earlier during the upgrade process:
Step 36/103 : RUN pip install setuptools==44.1.0 pip==20.0.2 wheel==0.34.2
---> Running in d958811993fe
Collecting setuptools==44.1.0
Downloading setuptools-44.1.0-py2.py3-none-any.whl (583 kB)
Collecting pip==20.0.2
Downloading pip-20.0.2-py2.py3-none-any.whl (1.4 MB)
Collecting wheel==0.34.2
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: wheel, setuptools, pip
Attempting uninstall: setuptools
Found existing installation: setuptools 56.0.0
Uninstalling setuptools-56.0.0:
Successfully uninstalled setuptools-56.0.0
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-20.0.2 setuptools-44.1.0 wheel-0.34.2
Removing intermediate container d958811993fe
Has anyone ever encountered a similar issue?
Thanks in advance!