Closed hendursaga closed 1 year ago
You have corruption in your Python packaging environment. The issue you've encountered is known to happen if one of the Distribution objects returned has None
for the name. You can replicate the issue without interacting with keyring by running python -c "import importlib_metadata; metadata.entry_points()"
.
I can see only one other environment where a similar issue occurred (https://github.com/python/importlib_metadata/issues/403), and I wasn't able to replicate their issue.
It's possible that upgrading importlib_metadata
will help (pip install -U importlib_metadata
).
If not, you'll probably need to dive into the internals of importlib_metadata
and help ascertain the factors that cause the issue. Consider something like:
import importlib_metadata as md
for dist in md.distributions:
print(dist.name, dist._path)
I'm running Python 3.9.16 (under asdf-vm) and keyring 23.13.1, and cannot list backends from the command-line program. I'm not sure which backends, if any, are configured.