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.

Invalid or non-existent authentication information

See original GitHub issue

When I run python setup.py sdist upload

I always get:

Submitting dist/xxxxxxx-0.1.4.tar.gz to https://upload.pypi.org/legacy/
Upload failed (403): Invalid or non-existent authentication information.
error: Upload failed (403): Invalid or non-existent authentication information.

It never asks me to enter my username but only password. So I assume the username is the same as when I run “register”.

I am pretty sure that password I entered is correct because I can login https://pypi.python.org/pypi

Could you please help? I am not new to pypi. I published several packages before. But now I am confused. What has changed recently?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:50 (8 by maintainers)

github_iconTop GitHub Comments

66reactions
dover247commented, Dec 4, 2018

Heres What I Did To Fix:

Created ~/.pypirc File With The Following Contents:

[distutils]
index-servers =
    pypi

[pypi]
repository: https://pypi.python.org/pypi
username: <username>
password: <pass>
25reactions
boxedcommented, May 5, 2017

The very existence of this issue, the number of people commenting, etc, shows this stuff is really quite bad 😦

Could someone explain why https://upload.pypi.org/legacy/ is a URL that we should/can use?

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Client Error: Invalid or non-existent authentication ...
403 Client Error : Invalid or non-existent authentication information occurs when uploading new module to pypi with Twine.
Read more >
PyPI deployments : Invalid or non-existent authentication ...
Hello,. I am trying to setup travis to automatically deploy to PyPI. Nothing I tried seem to work so far. My travis config...
Read more >
How to Fix Pypi Upload failed (403): Invalid or non-existent ...
If you run into authentication failure when trying to upload packages ... failed (403): Invalid or non-existent authentication information.
Read more >
LO78785: ERROR 'INVALID OR NONEXISTENT DOCUMENT'
Several users receive an error message, when they start their lotus notes client. (after they filled in their password)
Read more >
Help - PyPI
How can I use API tokens to authenticate with PyPI? ... Why am I getting a "Invalid or non-existent authentication information." error when...
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