You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the good old StackOverflow (here) before bothering you guys.
Basically, I got a virtual machine with a clean copy of Ubuntu 18.04 64-bits, and tried to use twine in Python 2.7.15rc1 to update an old package to Pypi.
This is the error I am getting:
> 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!
I checked the twine source code and realised there is no such error documented. Digging deeper, I found that this is being thrown by the twine/utils.py file functools.partial function... from the stack trace: (ignore the twine line numbers as I add a few debugging points throughout the file)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twine-1.11.1BB-py2.7.egg/twine/utils.py", line 202, in get_userpass_value
a = prompt_strategy()
File "/usr/local/lib/python2.7/dist-packages/twine-1.11.1BB-py2.7.egg/twine/utils.py", line 235, in password_from_keyring_or_prompt
get_password_from_keyring(system, username)
File "/usr/local/lib/python2.7/dist-packages/twine-1.11.1BB-py2.7.egg/twine/utils.py", line 223, in get_password_from_keyring
import keyring
File "/usr/lib/python2.7/dist-packages/keyring/init.py", line 3, in
from .core import (set_keyring, get_keyring, set_password, get_password,
File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 153, in
init_backend()
File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 66, in init_backend
keyrings = filter(limit, backend.get_all_keyring())
File "/usr/lib/python2.7/dist-packages/keyring/util/init.py", line 21, in wrapper
func.always_returns = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 196, in get_all_keyring
exceptions=TypeError))
File "/usr/lib/python2.7/dist-packages/keyring/util/init.py", line 31, in suppress_exceptions
for callable in callables:
File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 188, in is_class_viable
keyring_cls.priority
File "/usr/lib/python2.7/dist-packages/keyring/util/properties.py", line 24, in get
return self.fget.get(None, owner)()
File "/usr/lib/python2.7/dist-packages/keyring/backends/SecretService.py", line 38, in priority
list(secretstorage.get_all_collections(bus))
File "/usr/lib/python2.7/dist-packages/secretstorage/collection.py", line 149, in get_all_collections
yield Collection(bus, collection_path)
File "/usr/lib/python2.7/dist-packages/secretstorage/collection.py", line 43, in init
signature='ss')
File "/usr/lib/python2.7/dist-packages/secretstorage/util.py", line 34, in function_out
raise ItemNotFoundException('Item does not exist!')
ItemNotFoundException: Item does not exist!
From the error, I figure that playing with the keyring instead will probably be my quick fix, but I thought to mention this here in case others find similar issue.
Thanks,
The text was updated successfully, but these errors were encountered:
Found the issue, which was with keyring installation (D-Bus, etc). Coming from a fresh install, I was surprised the amount of additional packages required to make this work. Regardless, "twine" could implement a better error handling in the keyring not properly installed exception, rather than the error of another package altogether.
I tried the good old StackOverflow (here) before bothering you guys.
Basically, I got a virtual machine with a clean copy of Ubuntu 18.04 64-bits, and tried to use twine in Python 2.7.15rc1 to update an old package to Pypi.
This is the error I am getting:
> 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!
I checked the twine source code and realised there is no such error documented. Digging deeper, I found that this is being thrown by the
twine/utils.py
filefunctools.partial
function... from the stack trace: (ignore the twine line numbers as I add a few debugging points throughout the file)From the error, I figure that playing with the keyring instead will probably be my quick fix, but I thought to mention this here in case others find similar issue.
Thanks,
The text was updated successfully, but these errors were encountered: