#1059356 python3-poetry: No module named 'poetry_plugin_export'

#1059356#5
Date:
2023-12-23 12:01:53 UTC
From:
To:
Poetry fails whenever it tries to list the available sub-commands, which
it does whenever invoked without arguments or when asked to do so
("list"):

    $ poetry

    No module named 'poetry_plugin_export'

    $ poetry list

    No module named 'poetry_plugin_export'

I believe this is because it depends [1] on poetry-plugin-export, but
that dependency is completely ignored in the Debian package (shouldn't
the build fail if that dep is unavailable? I don't see that dep being
patched away anywhere in debian/).

That dependency has been there for a while (since 1.2.0 [2]) but it
"worked" without it as the export sub-command was being discovered at
runtime. Since [3], that dependency is an actual hard dependency, and
thus the Debian packaging will have to catch up.

(But I'd really love to also understand wtf is going on with the
dependency being silently ignored for a year and a half.)

[1]: https://github.com/python-poetry/poetry/blob/1.7.1/pyproject.toml#L36
[2]: https://github.com/python-poetry/poetry/commit/d52780c53723ac397f4e854a1d62d6cc1015e1ce
[3]: https://github.com/python-poetry/poetry/commit/f59728d74b1252a0105ce5b8062f8fa28535084f