Error upgrading from 2.2.8. to 2.3

I got an error executing the “pip install -U indico” comand in our Debian 9 test environment.

Collecting alembic==1.4.2
  Using cached alembic-1.4.2.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/indico/.venv/bin/python2 /opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp7swB0y
       cwd: /tmp/pip-install-b40tjn/alembic
  Complete output (10 lines):
  Traceback (most recent call last):
    File "/opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 108, in get_requires_for_build_wheel
      backend = _build_backend()
    File "/opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 99, in _build_backend
      obj = getattr(obj, path_part)
  AttributeError: 'module' object has no attribute '__legacy__'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/indico/.venv/bin/python2 /opt/indico/.venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp7swB0y Check the logs for full command output.

Indico 2.2.8
Debian 9
pip 20.2.3
Python 2.7.13

Can you help me please?
Regards,
Alberto Nardella

I’ve never seen this error before. Try upgrading pip and setuptools first, even though your versions aren’t that old… pip install -U pip setuptools

It worked. Thank you

Hello Indico Team,
i have an issue when i try to update indico(2.2.8->latest) or the plugins.
i follow this procedure Upgrade — Indico 2.3.3 documentation.
so,when i execute this command:

pip install -U indico

or

pip install -U indico-plugins

i have this error message

ERROR: Command errored out with exit status 1:
command: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmprhRxYj
cwd: /tmp/pip-install-NpUTrt/alembic
Complete output (4 lines):
Traceback (most recent call last):
File “/opt/indico/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py”, line 15, in
from glob import glob
ImportError: No module named glob
\ ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmprhRxYj Check the logs for full command output.

i tried

pip install -U pip setuptools

Requirement already up-to-date: pip in ./.venv/lib/python2.7/site-packages (20.3.4)
Requirement already up-to-date: setuptools in ./.venv/lib/python2.7/site-packages (44.1.1)

but error again

Indico 2.2.8
CentOS 7
pip 20.3.4
Python 2.7

Can you help me please?
Thank’s in advance
Adriano

This looks like something is seriously wrong with your Python environment…

One option to (likely) fix this would be deleting the virtualenv, recreating it and installing the indico and indico-plugins (if needed) packages again. Config and data will remain of course since you are just reinstalling the Python environment/packages.

sorry for the answer delay.
thank you for the suggestion, i go to test it.
i would share with you my experience.

thank’s a lot,
Adriano