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

Upload to PyPi Failed - It Seems #2453

Closed
swcurran opened this issue Aug 29, 2023 · 15 comments
Closed

Upload to PyPi Failed - It Seems #2453

swcurran opened this issue Aug 29, 2023 · 15 comments

Comments

@swcurran
Copy link
Member

swcurran commented Aug 29, 2023

We’re getting an error publishing to 0.10.0 Python artifact. @dbluhm @WadeBarnes @ryjones — can you figure out what is going on and if we can fix it?

Failed job: https://github.com/hyperledger/aries-cloudagent-python/actions/runs/6013478005/job/16311037078

Extracted error message from log:

Uploading distributions to https://upload.pypi.org/legacy/
Uploading aries_cloudagent-0.10.0-py3-none-any.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.8 MB • --:-- • ?
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.8 MB • --:-- • ?
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.8 MB • --:-- • ?
  4% ━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.1/1.8 MB • 00:01 • 72.4 MB/s
 16% ━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.3/1.8 MB • 00:01 • 2.0 MB/s
 26% ━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.5/1.8 MB • 00:01 • 2.2 MB/s
 38% ━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━ 0.7/1.8 MB • 00:01 • 2.0 MB/s
 81% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━ 1.5/1.8 MB • 00:01 • 3.6 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB • 00:00 • 3.8 MB/s
25hUploading aries_cloudagent-0.10.0.tar.gz
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/1.3 MB • --:-- • ?
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB • 00:00 • 189.0 MB/s
25hWARNING  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.           
Error: Process completed with exit code 1.
@swcurran
Copy link
Member Author

I’m worried that if an older version of ACA-Py, the build images that are being created are going to be bad.

@WadeBarnes
Copy link
Member

Strange:
image

@swcurran
Copy link
Member Author

It looks to me like the new version did get loaded to PyPi (9 minutes ago as I look...) so now I'm thinking that in our actions there are two pushes to PyPi, and the second one is failing? Not that I did a "re-run of the failed job", but it also failed (as I expected, I must say).

Can someone download the file from PyPi and see if it has the latest changes? Its going to be source code (right?) so we should be able to check.

@WadeBarnes
Copy link
Member

Looking

@swcurran swcurran changed the title Upload to PyPi Upload to PyPi Failed - It Seems Aug 29, 2023
@swcurran
Copy link
Member Author

swcurran commented Aug 29, 2023

This is the last change -- https://github.com/hyperledger/aries-cloudagent-python/pull/2451/files

And of course, the value of the version in version.py

@WadeBarnes
Copy link
Member

I see those changes in the aries_cloudagent-0.10.0-py3-none-any.whl

@swcurran
Copy link
Member Author

OK -- I think we close this. Sound right?

@swcurran
Copy link
Member Author

Or perhaps check the actions to see if the publish to PyPi is happening twice for some reason?

@WadeBarnes
Copy link
Member

WadeBarnes commented Aug 29, 2023

It's actually aries_cloudagent-0.10.0.tar.gz that failed to upload. Investigating further.

Two files get uploaded. a .whl and a .tar.gz.

@dbluhm
Copy link
Member

dbluhm commented Aug 29, 2023

Is it possible that testing for #2436 resulted in the filename being taken? It looks like PyPI just never lets you upload another file by that name again, even if you delete the release and project. Or was there perhaps a mistaken publish at some point in the past?

@WadeBarnes
Copy link
Member

I'm unable to login to the project to review and manage the files. Does someone have the login associated to the aries-cloudagent repo? @ryjones?

@WadeBarnes
Copy link
Member

Based on the documentation, there is nothing we could do about it. We'll never be able to upload or replace aries_cloudagent-0.10.0.tar.gz The only way to upload a new file is to upload the files for a new version/build.

@swcurran
Copy link
Member Author

swcurran commented Aug 29, 2023

Ok…New release coming.

@ryjones
Copy link
Member

ryjones commented Aug 29, 2023

@WadeBarnes your PyPi username?

@dbluhm
Copy link
Member

dbluhm commented Aug 29, 2023

For future reference, it's also possible to do a "post release" for this kind of issue: https://peps.python.org/pep-0440/#post-releases

Some projects use post-releases to address minor errors in a final release that do not affect the distributed software (for example, correcting an error in the release notes).

@dbluhm dbluhm closed this as completed Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants