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

HTTPError: 403 Forbidden #1057

Closed
1 task done
staFF6773 opened this issue Feb 23, 2024 · 2 comments
Closed
1 task done

HTTPError: 403 Forbidden #1057

staFF6773 opened this issue Feb 23, 2024 · 2 comments
Labels

Comments

@staFF6773
Copy link

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

When I use the command for py -m twine upload --repository pypi dist/* to upload my package to pypi I get this error

Uploading distributions to https://upload.pypi.org/legacy/
Enter your API token: 
WARNING  Your password is empty. Did you enter it correctly?
WARNING  See https://twine.readthedocs.io/#entering-credentials for more information.
Uploading image_core.py-1.0.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.0/5.0 kB • 00:01 • ?
WARNING  Error during upload. Retry with the --verbose option for more details.
ERROR    HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
         Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more
         information.

and I don't know what to do anymore.

What operating system are you using?

Windows 10

If you selected 'Other', describe your Operating System here

No response

What version of Python are you running?

Python 3.12.1

How did you install twine? Did you use your operating system's package manager or pip or something else?

pip install twine

What version of twine do you have installed (include the complete output)

twine version 5.0.0 (importlib-metadata: 7.0.1, keyring: 24.3.0, pkginfo: 1.9.6, requests: 2.31.0, requests-toolbelt:
1.0.0, urllib3: 2.1.0)

Which package repository are you using?

pypi.org

Please describe the issue that you are experiencing

Well as I said above when I tried to upload my package I got an error HTTPError: 403 Forbidden and I deleted python and reinstalled it, updated everything and it's still the same and I even changed pc and still the same error and I don't know what I should do.

Please list the steps required to reproduce this behaviour

twine upload dist/*

Anything else you'd like to mention?

No response

@staFF6773 staFF6773 added the bug label Feb 23, 2024
@sigmavirus24
Copy link
Member

WARNING  Your password is empty. Did you enter it correctly?
WARNING  See https://twine.readthedocs.io/#entering-credentials

You're not entering your password. This links to the docs and there are many duplicates of this where Windows users have difficulty with the prompt

@sigmavirus24
Copy link
Member

Duplicate of #671

@sigmavirus24 sigmavirus24 marked this as a duplicate of #671 Feb 23, 2024
@sigmavirus24 sigmavirus24 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants