Python pypi upload with twine retruns error: ItemNotFoundException: Item does not exist

Python pypi upload with twine retruns error: ItemNotFoundException: Item does not exist

我在这里或其他地方找不到关于此问题的任何相关内容。

我基本上是在尝试将我的包的新版本上传到 PyPi,但我收到了这个奇怪的错误:

python setup.py sdist bdist_wheel
# this works fine

twine upload dist/*
# returns:
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: XXXXXXXXXX
ItemNotFoundException: Item does not exist!

我找不到对这个错误的任何引用,甚至在 twine 源代码中也没有异常。

我可以在 pypi.org.

中确认包裹和我的用户帐户都没有问题

知道我为什么会遇到这个问题吗?

谢谢,

GitHub 中记录的答案:https://github.com/pypa/twine/issues/383

基本上,抛出的错误不是twine包的一部分。通过 D-Bus/keyring 安装解决(未作为 twine 的依赖包安装)。