Open phdsbr opened 2 years ago
I believe @bhrutledge recently released ~3.2.0~ 3.8.0 (edited to correct) with improvements to help with just such an error. Can you upgrade to that and retry?
I think using --verbose
with Twine 3.8.0 would give the most information.
Changelog: https://twine.readthedocs.io/en/latest/changelog.html#twine-3-8-0-2022-02-02
Environment
1) Your operating system: NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)"
2) Version of python you are running:
Python 3.8.10
3) How did you install twine? Did you use your operating system's package manager or pip or something else? OS package managera (apt-get install twine)
4) Version of twine you have installed (include complete output of):
twine version 3.1.1 (pkginfo: 1.4.2, requests: 2.22.0, setuptools: 45.2.0, requests-toolbelt: 0.8.0, tqdm: 4.30.0)
5) Which package repository are you targeting? Both test (https://test.pypi.org/legacy/) and official (https://upload.pypi.org/legacy/) have the same issue.
If you're having issues uploading a specific package, you must include a copy of the following:
The package's
PKG-INFO
fileA redacted version of your
.pypirc
file (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING) File: ~/.pypirc[pypi] repository = https://test.pypi.org/legacy/ username: ** password: **
$ twine upload --verbose dist/* Uploading distributions to https://test.pypi.org/legacy/ Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 37.0kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 1 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 34.5kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 2 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 117kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 3 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 128kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 4 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 116kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 5 of 5 Content received from server:
Internal Server Error
HTTPError: 500 Server Error: Internal Server Error for url: https://test.pypi.org/legacy/
$ twine upload --verbose dist/* 1 ↵ Uploading distributions to https://upload.pypi.org/legacy/ Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:05<00:00, 5.46kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 1 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 155kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 2 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 158kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 3 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 160kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 4 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 121kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 5 of 5 Content received from server:
Internal Server Error
HTTPError: 500 Server Error: Internal Server Error for url: https://upload.pypi.org/legacy/