Request to undelete a project

Due to my operational mistake, the previously created package was deleted, and now I am unable to update to a new version. I hope you can help me recover or initialize it.

PS H:\sdk\python_framework_sdk> twine upload dist/*               
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: geekros
Enter your password:
Uploading robotchain-1.0.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 kB • 00:00 • ?
WARNING  Error during upload. Retry with the --verbose option for more details.
ERROR    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.

You need to bump your version number. Try making it 1.0.1.

1 Like

I accidentally deleted the robotchain project, so the project no longer exists, and I won’t be able to continue updating the packages.

Have you tried with v1.0.1? Did it give the same error message or a different one?

Yes, I accidentally deleted the original robotchain project due to my mistake.

Is this: robotchain-sdk · PyPI
your new replacement? Just wondering.

I am not a member of the packaging or PyPI teams.

Cheers,
Cameron Simpson cs@cskk.id.au

Can you help me with this? I still want to use the name ‘robotchain’ for the project and make it open-source in the future.

yes, it’s a temporary substitute.

PyPI does not allow re-uploading a file with the exact same name even after the original file has been deleted.

So if you upload robotchain-1.0.0-py3-none-any.whl to PyPI, then delete it, you can not upload it again. That is why others have recommended you to change the version string (to a version string that has never been used before for that project), then try to upload again.

1 Like

Assuming this is just the issue (as opposed to deletion of an entire project preventing any new uploads under that project name) you should be able to release post-releases of all the affected versions, and installers will treat them just like the originals, unless users have them pinned all the way down to the full version string/hash. Just add .post1 to the version in your project metadata, e.g. 1.0.0.post1, rebuild your sdists/wheels, and then re-upload them.

Alternatively, you might be able to reach out on the PyPI support issue tracker, but given a high volume of requests and a limited number of people who can fulfill them, and the fact that undeletion is not a normal request, it may not be possible or take a long time, so uploading post releases is likely to be the quickest and most expedient solution.

1 Like