-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Exception when trying to add packages: [ChunkedEncodingError]: ('Connection broken: IncompleteRead #1996
Comments
I did find this issue... although not sure if it is related/similar behaviour. |
I also tried a plain p.s. thanks for all the great work on |
2.7.1 has been yanked from PyPI, but apparently you can still install it with homebrew :(
That's because you have already populated with broken caches, and the old PDM you installed from pip can't parse it. At this point you can run |
@frostming Please be warned, that now even with the recommended installation method, the yanked 2.7.1. is being installed: $ curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
Installing PDM (2.7.1): Creating virtual environment
Installing PDM (2.7.1): Installing PDM and dependencies |
Please note that I was still receiving a different error after re-installation (error relating to Cheers! |
Thanks @frostming , you saved me/us hours! <3 |
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
This is a brand new project. Although I have used
pdm
many times before without any errors.I have run
pdm init
and then am trying to add my first package using (in this case for the notebook package - same behaviour with other attempted package adds):pdm add --dev notebook
Actual behavior
Expected behavior
Normally the packages are added successfully without any error.
Environment Information
Other - initial investigation
This seems to be an issue with the update to version 2.7.x.
As an additional note, I thought that there is supposed to be a
.pdm.toml
file created in the project directory but I am not seeing this file.It appears from searches I did that there may be some issue with urllib3 incompatibility with the requests package or something like this. I am using a Homebrew install of pdm - although I also tried using a pipx install. With this version I am seeing the following behaviour:
and when I try to add a package I get a different error:
The text was updated successfully, but these errors were encountered: