Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyring error on every command #1335

Closed
3 tasks done
lpfann opened this issue Aug 27, 2019 · 6 comments · Fixed by #1788
Closed
3 tasks done

Keyring error on every command #1335

lpfann opened this issue Aug 27, 2019 · 6 comments · Fixed by #1788
Labels
kind/bug Something isn't working as expected

Comments

@lpfann
Copy link

lpfann commented Aug 27, 2019

  • 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'
@brycedrennan
Copy link
Contributor

Looks like you're using anaconda, which I don't believe is currently supported.

See #105

@dolan-a
Copy link

dolan-a commented Nov 22, 2019

I'm also getting this error using a Pyenv install of Python 3.7.5 and Poetry v1.0.0b6. Reverting back to Poetry v0.12.17 removes the error.

@ghost
Copy link

ghost commented 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'

@finswimmer finswimmer reopened this Nov 29, 2019
@finswimmer finswimmer added the kind/bug Something isn't working as expected label Nov 29, 2019
@danieleades
Copy link
Contributor

danieleades commented 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 ...)

@thoward27
Copy link

Same for me, version 1.0.3

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants