Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

corrupt wheels — 404 errors #40

Closed
rcoup opened this issue Mar 20, 2020 · 5 comments
Closed

corrupt wheels — 404 errors #40

rcoup opened this issue Mar 20, 2020 · 5 comments

Comments

@rcoup
Copy link
Contributor

rcoup commented Mar 20, 2020

eg. pipwin download gdal==3.0.4 results in a file GDAL-3.0.4-cp37-cp37m-win_amd64.whl with the html contents of a 404 page. Happens with other packages as well.

Maybe PipwinCache._download() could do with adding a res.raise_for_status() call after :294, so any HTTP errors are propagated correctly.

res = requests.get(url, headers=HEADER, stream=True)

@lepisma
Copy link
Owner

lepisma commented Mar 21, 2020

right, I might not be super fast in fixing this. open for PR though.

@tobinjones
Copy link

FYI I believe the root cause these 404 errors is that the server is rejecting the User-Agent you use (PostmanRuntime/7.22.0). If I set it to something like:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 then things work.

@lepisma
Copy link
Owner

lepisma commented Mar 26, 2020

can you try 0.4.8 now. haven't uploaded to pypi yet since twine is giving me error. check master.

@lepisma
Copy link
Owner

lepisma commented Mar 27, 2020

pushed to pypi

@rcoup
Copy link
Contributor Author

rcoup commented Mar 27, 2020

LGTM, thanks ⭐️

@rcoup rcoup closed this as completed Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants