pypi / support

Issue tracker for support requests related to using https://pypi.org
90 stars 47 forks source link

Error 404 on project page, and Error 400 when pushing a distribution #4204

Closed David-GERARD closed 2 weeks ago

David-GERARD commented 2 weeks ago

Describe the bug In my projects, I have a package for which I can click on manage, but not view. The package page seems to have been deleted and results in error 404.

Screenshot 2024-06-13 at 21 35 20

Screenshot 2024-06-13 at 21 36 05

When trying to push my new distribution (with a different version), I get the error message:

HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/                                                                                                           
This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for more information.

Expected behavior I should be able to access my project page at the minimum, and I should be able to push a new version (it was working earlier today)

To Reproduce The source code is in this repository.

Additional context This is my first time making a package and putting it on PyPi. I had been doing trial and errors, and deleting the versions 0.0.1 as I was solving bugs iteratively. Maybe this blocked me from the site?

miketheman commented 2 weeks ago

This is expected behavior. If you create a project and then delete the release, it will not be displayed any longer.

If you try to reupload the same release, it will be denied, per https://pypi.org/help/#file-name-reuse

David-GERARD commented 2 weeks ago

[edit] Hi @miketheman, I solved the issue, I forgot to delete the old distributions from the /dist folder. apologies for the issue