-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Crash with importlib-metadata > 5.0 ('EntryPoints' object has no attribute 'get') #1550
Comments
Since I am not using any plugins, I can work around this in my local environment by just commenting out the block in I'm not at all familiar with This may work, but again, I'm not familiar with eps = [e for e in entry_points() if "visidata.plugins" in e] |
Oh, thank you so much @jkerhin for letting me know. =( The good news is that for future releases of VisiData, if anything goes wrong at any point with |
This fix will be in the next patched release of VisiData. This gave us the nudge to push out the patch. Again, thanks so much for letting us know! |
VisiData v2.10.2 has been released with all of the fixes for this issue. =) |
Small description
Visidata is using the
.get()
method on the output ofimportlib.entry_points()
. According to the authors, the.get()
method was deprecated functionality, removed in version 5.0.0 (latest version). Discussion thread: python/importlib_metadata#409The call that throws the error is this one: https://github.com/saulpw/visidata/blob/develop/visidata/settings.py#L378
Expected result
Visidata runs without issue
Actual result with screenshot
Steps to reproduce with sample data and a .vd
Crashes before loading any data
Additional context
OS: Ubuntu Server 20.04
Python Version: 3.10.4
Environment:
pipx
Reference:
The text was updated successfully, but these errors were encountered: