"Links are not allowed as constraints" with current pip versions

Bug #1939230 reported by Kevin Zhao
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
High
Unassigned

Bug Description

Setup devstack master on ubuntu 21.04 Hirsute.

Python 3.9

2021-08-08 09:27:49.395 | WARNING: You are using pip version 20.2.4; however, version 21.2.3 is available.
2021-08-08 09:27:49.395 | You should consider upgrading via the '/usr/bin/python3.9 -m pip install --upgrade pip' command.
2021-08-08 09:27:49.591 | +^[[3242minc/python:pip_install:200 ^[[m^O result=0
2021-08-08 09:27:49.606 | +^[[3242minc/python:pip_install:202 ^[[m^O time_stop pip_install
2021-08-08 09:27:49.620 | +^[[3242mfunctions-common:time_stop:2309 ^[[m^O local name
2021-08-08 09:27:49.635 | +^[[3242mfunctions-common:time_stop:2310 ^[[m^O local end_time
2021-08-08 09:27:49.648 | +^[[3242mfunctions-common:time_stop:2311 ^[[m^O local elapsed_time
2021-08-08 09:27:49.661 | +^[[3242mfunctions-common:time_stop:2312 ^[[m^O local total
2021-08-08 09:27:49.674 | +^[[3242mfunctions-common:time_stop:2313 ^[[m^O local start_time
2021-08-08 09:27:49.689 | +^[[3242mfunctions-common:time_stop:2315 ^[[m^O name=pip_install
2021-08-08 09:27:49.703 | +^[[3242mfunctions-common:time_stop:2316 ^[[m^O start_time=1628414865235
2021-08-08 09:27:49.716 | +^[[3242mfunctions-common:time_stop:2318 ^[[m^O [[ -z 1628414865235 ]]
2021-08-08 09:27:49.729 | ++^[[3242mfunctions-common:time_stop:2321 ^[[m^O date +%s%3N
2021-08-08 09:27:49.747 | +^[[3242mfunctions-common:time_stop:2321 ^[[m^O end_time=1628414869732
2021-08-08 09:27:49.760 | +^[[3242mfunctions-common:time_stop:2322 ^[[m^O elapsed_time=4497
2021-08-08 09:27:49.774 | +^[[3242mfunctions-common:time_stop:2323 ^[[m^O total=0
2021-08-08 09:27:49.787 | +^[[3242mfunctions-common:time_stop:2325 ^[[m^O _TIME_START[$name]=
2021-08-08 09:27:49.801 | +^[[3242mfunctions-common:time_stop:2326 ^[[m^O _TIME_TOTAL[$name]=4497
2021-08-08 09:27:49.815 | +^[[3242minc/python:pip_install:203 ^[[m^O return 0
2021-08-08 09:27:49.830 | +^[[3242m./stack.sh:main:773 ^[[m^O iniset -sudo /etc/systemd/journald.conf Journal RateLimitBurst 0
2021-08-08 09:27:49.968 | +^[[3242m./stack.sh:main:774 ^[[m^O sudo systemctl restart systemd-journald
2021-08-08 09:27:50.269 | +^[[3242m./stack.sh:main:780 ^[[m^O install_infra
2021-08-08 09:27:50.283 | +^[[3242mlib/infra:install_infra:31 ^[[m^O local PIP_VIRTUAL_ENV=/opt/stack/requirements/.venv
2021-08-08 09:27:50.298 | +^[[3242mlib/infra:install_infra:32 ^[[m^O '[' '!' -d /opt/stack/requirements/.venv ']'
2021-08-08 09:27:50.312 | +^[[3242mlib/infra:install_infra:32 ^[[m^O python3 -m venv /opt/stack/requirements/.venv
2021-08-08 09:27:55.492 | +^[[3242mlib/infra:install_infra:34 ^[[m^O PIP_VIRTUAL_ENV=/opt/stack/requirements/.venv
2021-08-08 09:27:55.507 | +^[[3242mlib/infra:install_infra:34 ^[[m^O pip_install -U pbr
2021-08-08 09:27:55.605 | +^[[3242minc/python:pip_install:193 ^[[m^O env http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite /opt/stack/requirements/.venv/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -U pbr
2021-08-08 09:27:59.093 | DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement.. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
2021-08-08 09:27:59.093 | ERROR: Links are not allowed as constraints
2021-08-08 09:27:59.300 | +^[[3242minc/python:pip_install:1 ^[[m^O exit_trap
2021-08-08 09:27:59.317 | +^[[3242m./stack.sh:exit_trap:507 ^[[m^O local r=1
2021-08-08 09:27:59.335 | ++^[[3242m./stack.sh:exit_trap:508 ^[[m^O jobs -p
2021-08-08 09:27:59.352 | +^[[3242m./stack.sh:exit_trap:508 ^[[m^O jobs=
2021-08-08 09:27:59.366 | +^[[3242m./stack.sh:exit_trap:511 ^[[m^O [[ -n '' ]]
2021-08-08 09:27:59.382 | +^[[3242m./stack.sh:exit_trap:517 ^[[m^O '[' -f '' ']'
2021-08-08 09:27:59.398 | +^[[3242m./stack.sh:exit_trap:522 ^[[m^O kill_spinner
2021-08-08 09:27:59.413 | +^[[3242m./stack.sh:kill_spinner:417 ^[[m^O '[' '!' -z '' ']'
2021-08-08 09:27:59.429 | +^[[3242m./stack.sh:exit_trap:524 ^[[m^O [[ 1 -ne 0 ]]
2021-08-08 09:27:59.444 | +^[[3242m./stack.sh:exit_trap:525 ^[[m^O echo 'Error on exit'
2021-08-08 09:27:59.444 | Error on exit
2021-08-08 09:27:59.460 | +^[[3242m./stack.sh:exit_trap:527 ^[[m^O type -p generate-subunit
2021-08-08 09:27:59.476 | +^[[3242m./stack.sh:exit_trap:528 ^[[m^O generate-subunit 1628414803 76 fail
2021-08-08 09:28:00.095 | +^[[3242m./stack.sh:exit_trap:530 ^[[m^O [[ -z /opt/stack/logs ]]
2021-08-08 09:28:00.111 | +^[[3242m./stack.sh:exit_trap:533 ^[[m^O /usr/bin/python3.9 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2021-08-08 09:28:00.739 | +^[[3242m./stack.sh:exit_trap:542 ^[[m^O exit 1

Follow the guide from: https://github.com/pypa/pip/issues/8253

Limit the pip to 20.2.3 can workaround this issue.

Kevin Zhao (kevin-zhao)
description: updated
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

We don't support Ubuntu 21.04 nor are we going to constrain pip *again*. We are actively working on fixing the real issue here "ERROR: Links are not allowed as constraints" getting Fedora to work. Please see: https://review.opendev.org/c/openstack/devstack/+/802642

summary: - Error "Links are not allowed as contraints" when pip install pbr using
- python 3.9
+ "Links are not allowed as constraints" with current pip versions
Changed in devstack:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Justas P (jpou123) wrote :

I'm having same issue on Ubuntu 20.04.03. Running DevStack from stable/victoria branch.

jpo@jpo-test:~/devstack$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal

Using python 3.8 to install os-testr
+inc/python:pip_install:193 sudo -H LC_ALL=en_US.UTF-8 SETUPTOOLS_USE_DISTUTILS=stdlib http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite python3.8 -m pip install -c /opt/stack/requirements/upper-constraints.txt -U os-testr
DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
ERROR: Editable requirements are not allowed as constraints
+inc/python:pip_install:1 exit_trap
+./stack.sh:exit_trap:496 local r=1
++./stack.sh:exit_trap:497 jobs -p
+./stack.sh:exit_trap:497 jobs=
+./stack.sh:exit_trap:500 [[ -n '' ]]
+./stack.sh:exit_trap:506 '[' -f '' ']'
+./stack.sh:exit_trap:511 kill_spinner
+./stack.sh:kill_spinner:406 '[' '!' -z '' ']'
+./stack.sh:exit_trap:513 [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:514 echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:516 type -p generate-subunit
+./stack.sh:exit_trap:517 generate-subunit 1631878217 42 fail
./stack.sh: line 517: /opt/stack/devstack.subunit: Permission denied
jpo@jpo-test:~/devstack$

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

I think that this issue has been fixed by now. If you still have problems, please attach the full output of your stack.sh run on a fresh installation.

Changed in devstack:
status: Triaged → Incomplete
Revision history for this message
Jason Paroly (jparoly) wrote :

I can confirm that I did not hit this issue. I installed devstack from the master branch on ubuntu 20.04.03.

my local.conf:

[[local|localrc]]
ADMIN_PASSWORD=<psswd>
DATABASE_PASSWORD=<psswd>
RABBIT_PASSWORD=<psswd>
SERVICE_PASSWORD=<psswd>

Changed in devstack:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.