Skip to content
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

PDM fails to install dependencies due to cachecontrol not compatible with request 2.30 #1879

Closed
Roger-luo opened this issue May 3, 2023 · 4 comments
Labels
🐛 bug Something isn't working

Comments

@Roger-luo
Copy link

It works fine until this morning and start failing on github actions. I've made a simple repo to reproduce the error, and you can see the detailed printing from the log here https://github.com/Roger-luo/pdm-test/actions/runs/4874743432/jobs/8696058702

any idea why it's failing?

@Roger-luo Roger-luo added the 🐛 bug Something isn't working label May 3, 2023
@lambda
Copy link

lambda commented May 3, 2023

I had the same failure. It was due to an update of requests that pulled in an updated version of urllib3 that has some breaking changes that seem to be incompatble with cachecontrol.

I fixed it in my environment by pinning to requests==2.29.0.

I haven't actually gotten to the bottom of the issue yet, but wanted to report that pinning to the older version of requests fixed the issue in my environment.

@Roger-luo
Copy link
Author

seems due to this psf/cachecontrol#292

@Roger-luo Roger-luo changed the title PDM fails to install dependencies in github action PDM fails to install dependencies due to cachecontrol not compatible with request 2.30 May 3, 2023
@adriangb
Copy link
Contributor

adriangb commented May 3, 2023

Just in case it's helpful to anyone, I was able to work around this in CI using a single env var: PDM_DEPS: 'urllib3<2'

@frostming
Copy link
Collaborator

The 2.30 version is yanked, this should be fixed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants