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
Getting password information from keyring crashes pgcli, using keyring pass.
Expected behaviour is that pgcli assumes that password is not in the keyring.
Error: failed to retrieve secret "python-keyring/pgcli/foo@localhost": entry is not in the password store
Traceback (most recent call last):
File "/usr/bin/pgcli", line 33, in <module>
sys.exit(load_entry_point('pgcli==3.1.0', 'console_scripts', 'pgcli')())
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pgcli/main.py", line 1313, in cli
pgcli.connect(database, host, user, port)
File "/usr/lib/python3/dist-packages/pgcli/main.py", line 531, in connect
passwd = keyring.get_password("pgcli", key)
File "/usr/lib/python3/dist-packages/keyring/core.py", line 55, in get_password
return get_keyring().get_password(service_name, username)
File "/home/yarek/.local/lib/python3.9/site-packages/keyring_pass/__init__.py", line 70, in get_password
ret = command(['pass', 'show', self.get_key(servicename, username)])
File "/home/yarek/.local/lib/python3.9/site-packages/keyring_pass/__init__.py", line 16, in command
output = subprocess.check_output(cmd, **kwargs)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pass', 'show', 'python-keyring/pgcli/foo@localhost']' returned non-zero exit status 11.
The command used is gopass, pass returns exit code 1. However, the command failure should not stop pgcli from continuing and assuming password is not in the keyring.
Description
Getting password information from keyring crashes pgcli, using keyring pass.
Expected behaviour is that pgcli assumes that password is not in the keyring.
The command used is gopass, pass returns exit code 1. However, the command failure should not stop pgcli from continuing and assuming password is not in the keyring.
Your environment
Linux, Ubuntu 21.10
pgcli
Version: 3.1.0
pip freeze
command.Pip freeze:
The text was updated successfully, but these errors were encountered: