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

410 Client Error: This API has moved #353

Closed
Michael-E-Rose opened this issue Apr 27, 2018 · 6 comments
Closed

410 Client Error: This API has moved #353

Michael-E-Rose opened this issue Apr 27, 2018 · 6 comments

Comments

@Michael-E-Rose
Copy link

Trying to push a new releaste to PyPi, I get the follwoing HTTPError:

$ twine --version
twine version 1.5.0 (pkginfo: 1.2.1, requests: 2.18.4, setuptools: 39.0.1)
$ twine upload dist/*0.7*
Uploading distributions to https://pypi.python.org/pypi
Enter your username: merose
Enter your password: 
Uploading mypackage-0.7.0.tar.gz
HTTPError: 410 Client Error: This API has moved to https://upload.pypi.org/legacy/. See TODO for more information. for url: https://pypi.org/pypi

Reminds me of #200.

@di
Copy link
Member

di commented Apr 27, 2018

@Michael-E-Rose You either need to upgrade your version of twine (latest is 1.11.0) or, if you can't do that for some reason, configure your .pypirc to use https://upload.pypi.org/legacy/ as the repository, or pass it to twine with the --repository-url argument.

@Michael-E-Rose
Copy link
Author

It worked. The mistake was that I installed twine via apt-get. I removed it and installed it via pip3.

Strange thing however that you have two versions out there? How come?

@sigmavirus24
Copy link
Member

@Michael-E-Rose we don’t control the version that Linux distributions ship. They decide it for themselves. The only place we can publish new versions is PyPI

@brainwane
Copy link
Contributor

@Michael-E-Rose You can follow Twine's availability in various Debian versions at https://tracker.debian.org/pkg/twine . Twine 1.11.0 is in testing now and, if I understand correctly, links to the bug tracker where you can request that a Debian package maintainer upgrade the version of Twine available in Debian stable to 1.11.0. I'd be glad if you or someone else made that request! (I am a bit busy right now.) Thanks!

@brainwane
Copy link
Contributor

(Or if you're running a different Debian-based distro, I presume a similar process would be reasonable there.)

@Michael-E-Rose
Copy link
Author

Michael-E-Rose commented Apr 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants