StackStorm / st2docs

StackStorm Documentation.
https://docs.stackstorm.com/
64 stars 172 forks source link

Conflicting dependency: stevedore #1002

Closed winem closed 4 years ago

winem commented 4 years ago

Hi,

I just tried to build the docs via make docs and make livedocs to verify a small change on the docs before i create a PR and ran into this issue:

ERROR: dogpile-cache 1.0.1 has requirement stevedore>=3.0.0, but you'll have stevedore 1.30.1 which is incompatible.
ERROR: cliff 3.4.0 has requirement stevedore>=2.0.1, but you'll have stevedore 1.30.1 which is incompatible.
Installed /home/marcel/Sources/gitlab.winem/st2docs/st2/st2common
# Some of the tests rely on submodule so we need to make sure submodules are check out
git submodule update --recursive --remote
# Verify there are no conflicting dependencies
cat st2*/requirements.txt contrib/runners/*/requirements.txt | sort -u > req.txt && \
virtualenv/bin/pip-compile req.txt; \
if [[ -e req.txt ]]; then rm req.txt; fi
Could not find a version that matches stevedore==1.30.1,>=1.16.0,>=1.20.0,>=1.3.0,>=2.0.1 (from -r req.txt (line 62))
Tried: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.9, 0.9.1, 0.10, 0.11, 0.12, 0.13, 0.14, 0.14.1, 0.15, 1.0.0, 1.0.0, 1.1.0, 1.1.0, 1.2.0, 1.2.0, 1.3.0, 1.3.0, 1.4.0, 1.4.0, 1.5.0, 1.5.0, 1.6.0, 1.6.0, 1.7.0, 1.7.0, 1.8.0, 1.8.0, 1.9.0, 1.9.0, 1.10.0, 1.10.0, 1.11.0, 1.11.0, 1.12.0, 1.12.0, 1.13.0, 1.13.0, 1.14.0, 1.14.0, 1.15.0, 1.15.0, 1.16.0, 1.16.0, 1.17.0, 1.17.0, 1.17.1, 1.17.1, 1.18.0, 1.18.0, 1.19.0, 1.19.0, 1.19.1, 1.19.1, 1.20.0, 1.20.0, 1.20.1, 1.20.1, 1.21.0, 1.21.0, 1.22.0, 1.22.0, 1.23.0, 1.23.0, 1.24.0, 1.24.0, 1.25.0, 1.25.0, 1.25.1, 1.25.1, 1.25.2, 1.25.2, 1.26.0, 1.26.0, 1.27.0, 1.27.0, 1.27.1, 1.27.1, 1.28.0, 1.28.0, 1.29.0, 1.29.0, 1.30.0, 1.30.0, 1.30.1, 1.30.1, 1.31.0, 1.31.0, 1.32.0, 1.32.0, 2.0.0, 2.0.0, 2.0.1, 2.0.1, 3.0.0, 3.0.0, 3.1.0, 3.1.0, 3.2.0, 3.2.0
Skipped pre-versions: 1.0.0.0a2
There are incompatible versions in the resolved dependencies:
  stevedore==1.30.1 (from -r req.txt (line 62))
  stevedore>=1.20.0 (from osc-lib==2.2.0->python-mistralclient->-r req.txt (line 14))
  stevedore>=1.3.0 (from oslo.config==1.12.1->-r req.txt (line 36))
  stevedore>=1.16.0 (from tooz==1.66.1->-r req.txt (line 63))
  stevedore>=1.20.0 (from python-mistralclient->-r req.txt (line 14))
  stevedore>=1.20.0 (from keystoneauth1==4.2.0->python-mistralclient->-r req.txt (line 14))
  stevedore>=1.3.0 (from orquesta->-r req.txt (line 13))
  stevedore>=2.0.1 (from cliff==3.4.0->python-mistralclient->-r req.txt (line 14))
make[1]: Leaving directory '/home/marcel/Sources/gitlab.winem/st2docs/st2'

So, the issue is that st2/requirements.txt requires a specific version (==1.30.1) which is lower than the one required by cliff (>=2.0.1).

I'll try to update the dependency to >=1.30.1 and see if that works. Will provide a PR if it does.

winem commented 4 years ago

Ok, first try with >=1.30.1 failed with ERROR: stevedore 3.2.0 has requirement importlib-metadata>=1.7.0; python_version < "3.8", but you'll have importlib-metadata 0.23 which is incompatible.

I'll follow up on this topic tomorrow and try to find a requirement that fit's all.

LindsayHill commented 4 years ago

@winem I tried doing a build, and saw those same errors. But they don't stop it proceeding, so you can ignore those. It doesn't affect the docs builds. I did bump the pip version just for consistency - see #1005

winem commented 4 years ago

Hi, thank you for double-checking and the feedback!