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

KeyError on poetry plugin show #5417

Closed
abn opened this issue Apr 6, 2022 · 1 comment · Fixed by #5418
Closed

KeyError on poetry plugin show #5417

abn opened this issue Apr 6, 2022 · 1 comment · Fixed by #5418
Labels
area/plugin-api Related to plugins/plugin API

Comments

@abn
Copy link
Member

abn commented Apr 6, 2022

$ poetry plugin show   

  KeyError

  'export'

  at ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/commands/plugin/show.py:55 in handle
       51│             category = "plugins"
       52│             if issubclass(plugin, ApplicationPlugin):
       53│                 category = "application_plugins"
       54│ 
    →  55│             package = packages_by_name[canonicalize_name(entry_point.name)]
       56│             plugins[package.pretty_name]["package"] = package
       57│             plugins[package.pretty_name][category].append(entry_point)
       58│ 
       59│         for name, info in plugins.items():

This is after installing the export plugin.

Originally posted by @lovesegfault in #5412 (comment)

abn added a commit to abn/poetry that referenced this issue Apr 6, 2022
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: python-poetry#5417
@abn abn added the area/plugin-api Related to plugins/plugin API label Apr 6, 2022
abn added a commit to abn/poetry that referenced this issue Apr 6, 2022
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: python-poetry#5417
abn added a commit to abn/poetry that referenced this issue Apr 6, 2022
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: python-poetry#5417
abn added a commit to abn/poetry that referenced this issue Apr 6, 2022
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: python-poetry#5417
radoering pushed a commit that referenced this issue Apr 6, 2022
Prior to this change the `plugin show` command assumed the entrypoint
name to be the same as the package providing the plugin. This change
makes use of the `entrypoint.distro.name` instead to derive the source
package.

Resolves: #5417
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
area/plugin-api Related to plugins/plugin API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant