Error Upgrade Indico from 2.2 to 2.3 - HTTP-Proxy

Hi get a error on my testsystems, because it can access the internet only over a http proxy.

I already set the proxy for the pip command.

Installing build dependencies … error

*ERROR: Command errored out with exit status 1:*
*   command: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-KE8tKe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel*
*       cwd: None*
*  Complete output (9 lines):*
*  DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained*
*after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support*
*  Collecting setuptools>=40.8.0*
*    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01f90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/*
*    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01f10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/*
*    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01290>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/*
*    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01c10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/*
*    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01c90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/*
*    ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)*
*  ERROR: No matching distribution found for setuptools>=40.8.0*
*  ----------------------------------------*
*ERROR: Command errored out with exit status 1: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-KE8tKe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.*
WARNING: You are using pip version 19.2.2, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Comand that was used: pip --proxy PROXYNAME:80 install -U indico

Any tip so solve this ?

Can you please show the complete output starting from the command you executed?

Even though I’m not sure we can help you there, the error seems to be more related to pip/setuptools…

(.venv) [indico@vm-130-90 ~]$ pip --proxy PROXYNAME:80 install -U indico
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting indico
  Using cached https://files.pythonhosted.org/packages/af/de/ffcdd5d5c57fdf6534ac74e2f0faeb0c1f3eacce55fed3e407f32bd884d3/indico-2.3-py2-none-any.whl
Collecting bleach==3.1.5 (from indico)
  Using cached https://files.pythonhosted.org/packages/9a/1e/7d6cb3b27cd2c490558349ca5d5cc05b390b017da1c704cac807ac8bd9fb/bleach-3.1.5-py2.py3-none-any.whl
Collecting Flask-BabelEx==0.9.4 (from indico)
  Using cached https://files.pythonhosted.org/packages/85/e7/217fb37ccd4bd93cd0f002028fb7c5fdf6ee0063a6beb83e43cd903da46e/Flask-BabelEx-0.9.4.tar.gz
Collecting celery==4.4.7 (from indico)
  Using cached https://files.pythonhosted.org/packages/c8/0c/609e3611d20c9f8d883852d1be5516671f630fb08c8c1e56911567dfba7b/celery-4.4.7-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: wsgiref==0.1.2 in /usr/lib64/python2.7 (from indico) (0.1.2)
Collecting icalendar==4.0.7 (from indico)
  Using cached https://files.pythonhosted.org/packages/c5/14/85ffbeefb591e8be0d51e4611750653549f60b27221ce6b0f9c724b3f5c0/icalendar-4.0.7-py2.py3-none-any.whl
Collecting flask-marshmallow==0.11.0 (from indico)
  Using cached https://files.pythonhosted.org/packages/19/0a/8ca7470cb74e0a31eb902b610867d5e4c86ff03a86203f7fd580d57a9850/flask_marshmallow-0.11.0-py2.py3-none-any.whl
Collecting pycountry==19.8.18 (from indico)
  Using cached https://files.pythonhosted.org/packages/16/b6/154fe93072051d8ce7bf197690957b6d0ac9a21d51c9a1d05bd7c6fdb16f/pycountry-19.8.18.tar.gz
Collecting simplejson==3.17.2 (from indico)
  Using cached https://files.pythonhosted.org/packages/90/68/bced6ede6012c9c25a555e149238e16b85bc091940d605f16bd3b499d16e/simplejson-3.17.2-cp27-cp27mu-manylinux2010_x86_64.whl
Collecting pytest-cov==2.10.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/e5/18/401594af67eda194a8b9167208621761927c937db7d60292608342bbac0a/pytest_cov-2.10.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: requests-oauthlib<1.2.0 in ./.venv/lib/python2.7/site-packages (from indico) (1.1.0)
Requirement already satisfied, skipping upgrade: terminaltables==3.1.0 in ./.venv/lib/python2.7/site-packages (from indico) (3.1.0)
Requirement already satisfied, skipping upgrade: blinker==1.4 in ./.venv/lib/python2.7/site-packages (from indico) (1.4)
Collecting SQLAlchemy==1.3.19 (from indico)
  Using cached https://files.pythonhosted.org/packages/98/6c/876ca5c38046879d2bb332e01c7aabd84d6ab28162d71adeb3ebcf8fe857/SQLAlchemy-1.3.19-cp27-cp27mu-manylinux2010_x86_64.whl
Requirement already satisfied, skipping upgrade: ipaddress in ./.venv/lib/python2.7/site-packages (from indico) (1.0.22)
Requirement already satisfied, skipping upgrade: Flask-PluginEngine==0.3.1 in ./.venv/lib/python2.7/site-packages (from indico) (0.3.1)
Collecting Flask==1.1.2 (from indico)
  Using cached https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl
Collecting python-dateutil==2.8.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting click==7.1.2 (from indico)
  Using cached https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl
Collecting Babel==2.8.0 (from indico)
  Using cached https://files.pythonhosted.org/packages/15/a1/522dccd23e5d2e47aed4b6a16795b8213e3272c7506e625f2425ad025a19/Babel-2.8.0-py2.py3-none-any.whl
Collecting jsonschema==3.2.0 (from indico)
  Using cached https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl
Collecting Flask-SQLAlchemy==2.4.4 (from indico)
  Using cached https://files.pythonhosted.org/packages/af/4b/3dd83c3e2c6e3034b804d971952e0120606506f153990cc56d2d33173b72/Flask_SQLAlchemy-2.4.4-py2.py3-none-any.whl
Collecting Markdown==3.1.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: idna==2.9 in ./.venv/lib/python2.7/site-packages (from indico) (2.9)
Collecting Flask-Multipass<0.4-dev,>=0.3.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/20/d8/82413ffc74c48374e8317b9ece13e8539d179addcef3b161287bb4d8cfd1/Flask_Multipass-0.3.1-py2.py3-none-any.whl
Collecting webargs==5.5.3 (from indico)
  Using cached https://files.pythonhosted.org/packages/42/04/6c37af320f42444c83e072609a69571e51229e77e36f1d5a84e68cf826c1/webargs-5.5.3-py2-none-any.whl
Collecting Flask-WTF==0.14.3 (from indico)
  Using cached https://files.pythonhosted.org/packages/36/a9/8c01171066bd7a524ee005d81bb4a8aa446ab178043a1ad6cb5dc8f0bd83/Flask_WTF-0.14.3-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: ipython<6,>=5.4.1 in ./.venv/lib/python2.7/site-packages (from indico) (5.8.0)
Collecting freezegun==0.3.15 (from indico)
  Using cached https://files.pythonhosted.org/packages/17/5d/1b9d6d3c7995fff473f35861d674e0113a5f0bd5a72fe0199c3f254665c7/freezegun-0.3.15-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: itsdangerous==1.1.0 in ./.venv/lib/python2.7/site-packages (from indico) (1.1.0)
Collecting kombu<4.7,>=4.6.10 (from indico)
  Using cached https://files.pythonhosted.org/packages/9e/34/3eea6a3a9ff81b0c7ddbdceb22a1ffc1b5907d863f27ca19a68777d2211d/kombu-4.6.11-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: pojson==0.7 in ./.venv/lib/python2.7/site-packages (from indico) (0.7)
Collecting reportlab==3.5.49 (from indico)
  Using cached https://files.pythonhosted.org/packages/1e/a3/32275badd8cfb1543a6e702626e6fd43c1188eff481cc1a98d91fe1f3163/reportlab-3.5.49-cp27-cp27mu-manylinux2010_x86_64.whl
Collecting email-validator==1.1.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/8b/f5/26dc56e8e5b3441e766c8c359be9a28d2355902ab8b2140a2d5988da675e/email_validator-1.1.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: certifi in ./.venv/lib/python2.7/site-packages (from indico) (2019.6.16)
Requirement already satisfied, skipping upgrade: termcolor==1.1.0 in ./.venv/lib/python2.7/site-packages (from indico) (1.1.0)
Collecting pywebpack==1.0.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/48/b0/852f93d66c98c61527f0231f2f42cb51e1f80ff7462d794ea63f75397165/pywebpack-1.0.1-py2.py3-none-any.whl
Collecting marshmallow-enum==1.5.1 (from indico)
  Using cached https://files.pythonhosted.org/packages/c6/59/ef3a3dc499be447098d4a89399beb869f813fee1b5a57d5d79dee2c1bf51/marshmallow_enum-1.5.1-py2.py3-none-any.whl
Collecting alembic==1.4.2 (from indico)
  Using cached https://files.pythonhosted.org/packages/60/1e/cabc75a189de0fbb2841d0975243e59bde8b7822bacbb95008ac6fe9ad47/alembic-1.4.2.tar.gz
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-KE8tKe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
       cwd: None
  Complete output (9 lines):
  DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained
after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
  Collecting setuptools>=40.8.0
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01f90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01f10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01290>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01c10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6518e01c90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/setuptools/
    ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
  ERROR: No matching distribution found for setuptools>=40.8.0
  ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/indico/.venv/bin/python /opt/indico/.venv/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-KE8tKe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.
WARNING: You are using pip version 19.2.2, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Try using the http_proxy env var instead: https://pip.pypa.io/en/stable/user_guide/#using-a-proxy-server

it is already set up by default in our centos systems and also check it by echo $http_proxy as indico user. No success…

https_proxy as well? not sure if http_proxy is used for HTTPS connections…

okay it is solved. It ignored the https_proxy setting in the etc/enviroment so exported it again in the indico user enviroment.Thx for the help.