pypa / twine

Utilities for interacting with PyPI

Home Page:https://twine.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTPError: 403 Forbidden

staFF6773 opened this issue · comments

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

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