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).
- OS version and name: Fedora 30 Gnome
- Poetry version: 1.0.0b1
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/lpfann/d452508a400b15d63091e18d25e964f6
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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ...
)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: