Skip to content

--upgrade-strategy eager in environment setup leads to VersionConflict #8677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fwitte opened this issue Nov 12, 2021 · 3 comments
Closed

--upgrade-strategy eager in environment setup leads to VersionConflict #8677

fwitte opened this issue Nov 12, 2021 · 3 comments
Labels
Support Support question

Comments

@fwitte
Copy link

fwitte commented Nov 12, 2021

Details

Expected Result

The installation of dependencies in two steps (first sphinx and stuff, then the actual package, TESPy) should work smoothly.

Actual Result

Build fails due to ContextualVersionConflict.

Reason

  • pyparsing is first installed in version 2.4.7 (from packaging->sphinx>=1.3->-r docs/requirements.txt), requirement: pyparsing<3,>=2.0.2
  • pyparsing is then installed in version 3.0.5 (from matplotlib<4,>=3.2.1->TESPy==0.5.1.dev0), requirement pyparsing>=2.2.1

This leads to the error above and cancels the build. This might be somewhat related (#7345) but since I am not too familiar with the pip strategies applied on readthedocs, I wanted to ask, if this is a bug. Or should I just add a pyparsing<3 requirement to the setup.py dependencies of TESPy? Maybe there is a more ellegant solution?

I would also guess, that any other package with a similar matplotlib dependency would lead to the same issue.

Thank you very much for your help, have a nice weekend

@stsewd
Copy link
Member

stsewd commented Nov 15, 2021

Looks like this is a matplolib issue, matplotlib/matplotlib#21446. It was already fixed, but they need a new release.

@stsewd stsewd added the Support Support question label Nov 15, 2021
@fwitte
Copy link
Author

fwitte commented Nov 15, 2021

Thanks for letting me know! :) Should we keep this open, until the matplotlib version is released?

@stsewd
Copy link
Member

stsewd commented Nov 15, 2021

I think it's fine closing, as this isn't specific to rtd, but to the dependencies of sphinx and matplotlib

@stsewd stsewd closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants