Skip to content
Advertisement

Pip throws ‘Error initializing plugin EntryPoint(name=’macOS’, value=’keyring.backends.macOS’, group=’keyring.backends’)’

I’m running python 3.8 under Pop!_OS and noticed a weird reoccurring error when running various pip commands like install or list --outdated. The full error states:

Error initializing plugin EntryPoint(name='macOS', value='keyring.backends.macOS', group='keyring.backends').
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/keyring/backend.py", line 203, in _load_plugins
    init_func = ep.load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'keyring.backends.macOS'

The command’s functionality appears to be unaffected by this but it irritates me nonetheless and I have been unable to find anything about this sort of error. So my question is, why is this error triggered by various basic pip commands, why is it about macOS and how do I fix it?

Advertisement

Answer

That was happening to me also after trying to update keyring. I properly updated it afterwards and it persisted. My issue solved itself after I opened a new terminal window….

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement