question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module 'keyring.errors' has no attribute 'KeyringLocked'

See original GitHub issue

Description

After restarting my PC I got module 'keyring.errors' has no attribute 'KeyringLocked' when running pgcli -D xxx.

  1. How to fix it?
  2. How to disable the keyring? I don’t want to input password anymore.

Your environment

OS:

OS: Ubuntu 18.04.2 LTS x86_64 
Kernel: 4.18.0-18-generic 
Shell: zsh 5.4.2 
CPU: Intel i5-7500 (4) @ 3.800GHz 
GPU: NVIDIA GeForce GT 730 
Memory: 2432MiB / 7935MiB 

cli: 2.0.0 pip freeze:

appdirs==1.4.3
asn1crypto==0.24.0
astroid==2.1.0
attrs==17.4.0
Automat==0.6.0
autopep8==1.4.3
beautifulsoup4==4.6.3
black==18.9b0
blessings==1.7
blinker==1.4
bpython==0.17.1
bs4==0.0.1
certifi==2018.1.18
chardet==3.0.4
cli-helpers==1.1.0
Click==7.0
cloud-init==18.5
colorama==0.3.7
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
cryptography==2.1.4
curtsies==0.3.0
distro-info===0.18ubuntu0.18.04.1
django-admin==1.3.2
django-excel-response2==2.0.8
django-six==1.0.4
greenlet==0.4.12
httpie==0.9.8
httplib2==0.9.2
humanize==0.5.1
hyperlink==17.3.1
idna==2.6
incremental==16.10.1
isort==4.3.4
Jinja2==2.10
jsonify==0.5
jsonpatch==1.16
jsonpointer==1.10
jsonschema==2.6.0
keyring==10.6.0
keyrings.alt==3.0
language-selector==0.1
lazy-object-proxy==1.3.1
livereload==2.6.0
lxml==4.2.5
Markdown==3.0.1
MarkupSafe==1.0
mccabe==0.6.1
mkdocs==1.0.4
mkdocs-bootstrap==1.0.1
mkdocs-material==3.3.0
msgpack==0.5.6
mycli==1.19.0
neovim==0.2.0
netifaces==0.10.4
oauthlib==2.0.6
PAM==0.4.2
pbr==5.1.1
pgcli==2.0.0
pgspecial==1.11.2
pika==0.13.0
prompt-toolkit==2.0.7
psycopg2==2.7.5
pyasn1==0.4.2
pyasn1-modules==0.2.1
pycodestyle==2.4.0
pycrypto==2.6.1
Pygments==2.2.0
pygobject==3.26.1
PyJWT==1.5.3
pylint==2.2.2
pymdown-extensions==6.0
PyMySQL==0.9.2
pyOpenSSL==17.5.0
pyserial==3.4
python-apt==1.6.3+ubuntu1
python-debian==0.1.32
pytz==2018.7
pyxdg==0.25
PyYAML==3.13
requests==2.18.4
requests-unixsocket==0.1.5
screen==1.0.1
SecretStorage==2.3.1
service-identity==16.0.0
setproctitle==1.1.10
six==1.11.0
sqlparse==0.2.4
ssh-import-id==5.7
stevedore==1.30.0
systemd-python==234
tabulate==0.8.2
terminaltables==3.1.0
toml==0.10.0
tornado==5.1.1
Twisted==17.9.0
typed-ast==1.1.0
typing==3.6.6
ufw==0.36
unattended-upgrades==0.1
urllib3==1.22
virtualenv==16.1.0
virtualenv-clone==0.4.0
virtualenvwrapper==4.8.2
wcwidth==0.1.7
wrapt==1.10.11
xlwt==1.3.0
zope.interface==4.3.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Qu4trocommented, Apr 23, 2019

To your second question, you can add (or alter) this in your config

# $HOME/.config/pgcli/config
keyring = False
0reactions
j-bennetcommented, Apr 25, 2019

Oh, that doesn’t look good. We have to fix this asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

keyring module is not included while packaging with py2exe
is working fine as I am storing json response in keyring. But, when I converted python code into exe by using py2exe, it...
Read more >
keyring · PyPI
The Python keyring library provides an easy way to access the system keyring service from python. It can be used in any application...
Read more >
History - keyring 23.11.1.dev8+g2354d68.d20221113 ...
OS_X module (with no functionality) to mask errors when older keyring versions are ... #345: Remove application attribute from stored passwords using ...
Read more >
dbcli/pgcli - Gitter
Hey guys. I got module 'keyring.errors' has no attribute 'KeyringLocked when running pgcli -D xxx . Any advice?
Read more >
How to use the keyring.get_keyring function in keyring - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues ... :raises: ``KeyringLocked`` if the system...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found