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.

Keyring error on every command

See original GitHub issue
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

On the latest beta release I encounter the following output when running any poetry command. Poetry still works fine despite those messages. It is probably related to #774 .

Error initializing plugin EntryPoint('Gnome', 'keyrings.alt.Gnome', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/Gnome.py", line 11, in <module>
    from keyring.py27compat import unicode_str
ModuleNotFoundError: No module named 'keyring.py27compat'
Error initializing plugin EntryPoint('Google', 'keyrings.alt.Google', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/Google.py", line 18, in <module>
    from keyring.py27compat import input, pickle
ModuleNotFoundError: No module named 'keyring.py27compat'
Error initializing plugin EntryPoint('Windows (alt)', 'keyrings.alt.Windows', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/Windows.py", line 9, in <module>
    from . import file_base
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/file_base.py", line 7, in <module>
    from keyring.py27compat import configparser
ModuleNotFoundError: No module named 'keyring.py27compat'
Error initializing plugin EntryPoint('file', 'keyrings.alt.file', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/file.py", line 9, in <module>
    from keyring.py27compat import configparser
ModuleNotFoundError: No module named 'keyring.py27compat'
Error initializing plugin EntryPoint('kwallet', 'keyrings.alt.kwallet', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/kwallet.py", line 6, in <module>
    from keyring.py27compat import unicode_str
ModuleNotFoundError: No module named 'keyring.py27compat'
Error initializing plugin EntryPoint('pyfs', 'keyrings.alt.pyfs', None, Distribution('keyrings.alt', '1.3')).
Traceback (most recent call last):
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/lpfannschmidt/.poetry/lib/poetry/_vendor/py3.7/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/lpfannschmidt/anaconda3/lib/python3.7/site-packages/keyrings/alt/pyfs.py", line 5, in <module>
    from keyring.py27compat import configparser
ModuleNotFoundError: No module named 'keyring.py27compat'

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
danieleadescommented, Mar 24, 2020

i’m seeing this on poetry 1.0.3

edit: i’m also seeing this on 1.0.5. yes, I used the recommended installer

This is blocking me from publishing to artifactory with an auth token (I see this error when running poetry config ...)

1reaction
ghostcommented, Nov 27, 2019

I’m also getting this error with Poetry v1.0.0a5 through Poetry v1.0.0b8 on Ubuntu 18.04.3 LTS. Reverting back to Poetry v0.12.17 fixes it. I’m not using anaconda.

Full error:

Error initializing plugin EntryPoint('Windows (alt)', 'keyrings.alt.Windows', None, Distribution('keyrings.alt', '3.0')).
Traceback (most recent call last):
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/keyrings/alt/Windows.py", line 9, in <module>
    from . import file_base
  File "/usr/lib/python3/dist-packages/keyrings/alt/file_base.py", line 13, in <module>
    from keyring.util.escape import escape as escape_for_ini
ModuleNotFoundError: No module named 'keyring.util.escape'
Error initializing plugin EntryPoint('file', 'keyrings.alt.file', None, Distribution('keyrings.alt', '3.0')).
Traceback (most recent call last):
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/keyrings/alt/file.py", line 11, in <module>
    from keyring.util.escape import escape as escape_for_ini
ModuleNotFoundError: No module named 'keyring.util.escape'
Error initializing plugin EntryPoint('pyfs', 'keyrings.alt.pyfs', None, Distribution('keyrings.alt', '3.0')).
Traceback (most recent call last):
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/keyring/backend.py", line 188, in _load_plugins
    init_func = ep.load()
  File "/home/zander/.poetry/lib/poetry/_vendor/py3.6/entrypoints.py", line 82, in load
    mod = import_module(self.module_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/keyrings/alt/pyfs.py", line 8, in <module>
    from keyring.util.escape import escape as escape_for_ini
ModuleNotFoundError: No module named 'keyring.util.escape'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with Keyring when connection from ssh
You can start GNOME keyring on a host, for example following these ... I logged into the ubuntu 20 graphical UI, logged out...
Read more >
Why do I get an error saying my password no longer matches ...
Answer. On Athena workstations, you may receive an error that says something to the effect of "Your password no longer matches your keyring"...
Read more >
Error Opening KeyRing - Boundary Dev - HashiCorp Discuss
1- Why am I getting the keyring error ? 2 -Are users supposed to authenticate and then use that token generated with any...
Read more >
Avoid keyring messages when running command line tools
How can I configure the logger and the password for keyring, so that I am no longer bothered when running any utility dependent...
Read more >
keyring 23.13.1.dev3+g372001b.d20221218 documentation
Keyring supplies a keyring command which is installed with the package. ... flag to avoid any Operation not permitted errors when attempting to...
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