question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry publish --build fails with "400 Client Error: This filename has already been used"

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

The failure looks like this:

(carly-py2.7) (master) tweedledee:carly chris$ poetry publish --build
Building carly (0.2.0)
 - Building sdist
 - Built carly-0.2.0.tar.gz

 - Building wheel
 - Built carly-0.2.0-py2.py3-none-any.whl

Publishing carly (0.2.0) to PyPI
 - Uploading carly-0.2.0-py2.py3-none-any.whl 100%
                                                                                                                                                 
[HTTPError]                                                                                                                       
400 Client Error: This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy/                                                                                                                         
                                                                                                                                                 
publish [-r|--repository REPOSITORY] [-u|--username USERNAME] [-p|--password PASSWORD] [--build]

If you look at pypi, you’ll see the wheel made it up, but not the sdist:

https://pypi.org/project/carly/0.2.0/#files

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sdispatercommented, Nov 16, 2018

I will investigate and check if there is a case where this can happen. I will keep you posted.

0reactions
cjw296commented, Dec 15, 2018

Nope, I haven’t been able to reproduce this since, so closing for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry publish --build fails with "400 Client Error: This filename ...
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >
How can I re-upload package to pypi? - python - Stack Overflow
error: HTTP Error 400: This filename has previously been used, you should use a different version. It seems pypi can track the upload...
Read more >
How to Publish an Open-Source Python Package to PyPI
In this step-by-step tutorial, you'll learn how to create a Python package for your project and how to publish it to PyPI, the...
Read more >
400 Client Error when trying to install prodigy using poetry
The error occurs due to poetry passing my HTTP Basic auth credentials to the AWS S3 pre-signed URL. AWS throws the error saying...
Read more >
Making Python Packages Part 2: How to Publish & Test Your ...
The first step to do this is to make a new account on test.pypi.org (yes, you need a separate account from your pypi...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found