-
Notifications
You must be signed in to change notification settings - Fork 310
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
403 Client Error: Invalid or non-existent authentication information. #424
Comments
https://test.pypi.org/user/kstenerud/ does not exist. You have to create your login there first. The error message could be improved by PyPI but is not in the domain of Twine in my opinion. |
This comment has been minimized.
This comment has been minimized.
Instead of write I was also having same problem but by typing commands this way, my problem got solved. |
the perfect solution |
@Foxgeek36 and @Kamleshgupta1: The correct solution when Using |
Same error uploading to https://upload.pypi.org/legacy/ |
@reubano Can you show the exact |
|
@reubano I'm afraid that's not enough information. Notably missing is the output of the commands, and the username that's in That said, I'm fairly confident that this is not an issue with Twine, but rather a configuration issue. I think you might get more help by posting a detailed issue at https://github.com/pypa/packaging-problems. |
I tried @adamcanray solution, and it's working. The only thing i need to do is to put '' around user name and password; otherwise, it fails. twine upload -u 'YOUR-USERNAME' -p 'YOUR-PASSWORD' - repository-url https://test.pypi.org/legacy/ dist / * |
Thanks @vsay01 and @adamcanray this worked!
Here are my other config options
|
After more trouble shooting, the bare minimum working command is |
@reubano I'm glad this is working for you. FWIW, since
Command:
That said, I would recommend not storing your password in Even better would be to use PyPI API tokens instead of your username/password. |
I had this same issue uploading dist to test.pypi.org. Although, in my case the problem was simply because my email address was not verified. After that my |
Having verified accounts in PyPI and TestPyPI, contents for
After building the package, publishing for TestPyPI:
Publishing for PyPI:
|
This comment has been minimized.
This comment has been minimized.
Make sure you guys make an account for testpypi AND pypi. It is two different things. I went through every single comment on this thread before I realized that its two different things. Once you make the new account for pypi and verify the email, the upload feature will work. |
Your Environment
Your operating system: Ubuntu 18.10
Version of python you are running:
I followed instructions at https://pypi.org/project/twine/
Then when I tried to run it, I was instructed to run:
I don't know what this means.
The Issue
I get an HTTP error following the instructions at https://pypi.org/project/twine/
Steps to Reproduce
If the issue is predictable and consistently reproducible, please list the steps here.
The text was updated successfully, but these errors were encountered: