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

2024-02-23 Thread Emmanuel Arias
Hi Tomas!

You are right the poetry-plugin-export was missed,
but now we have it in Debian. The reason about why
it did not fail before, because I deactivated the
tests until poetry-plugin-export be in Debian.

A good question is about why it has never been
reported before :-).

FYI, I'm working in the version 1.8.0.dev0. As it
was no released yet, I will go first to experimental.

-- 
cheers,
Emmanuel Arias

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  eam...@debian.org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: 13796755BBC72BB8ABE2AEB5 FA9DEC5DE11C63F1
 
 ⠈⠳⣄


signature.asc
Description: PGP signature


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

2023-12-23 Thread Tomas Janousek
Package: python3-poetry
Version: 1.7.1+dfsg-1
Severity: important

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

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-security
  APT policy: (990, 'stable-security'), (990, 'testing'), (500, 
'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 
'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-3-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC, TAINT_USER, TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-poetry depends on:
ii  python3 [python3-supported-min]  3.11.4-5+b1
ii  python3-build0.10.0-1
ii  python3-cachecontrol 0.13.1-1
ii  python3-cleo 2.1.0-2
ii  python3-crashtest0.4.1-1
ii  python3-dulwich  0.21.6-1+b1
ii  python3-fastjsonschema   2.19.0-1
ii  python3-importlib-metadata   4.12.0-1
ii  python3-installer0.7.0+dfsg1-2
ii  python3-keyring  24.3.0-1
ii  python3-lockfile 1:0.12.2-3
ii  python3-packaging23.2-1
ii  python3-pexpect  4.8.0-4
ii  python3-pkginfo  1.8.2-2
ii  python3-platformdirs 4.1.0-1
ii  python3-poetry-core  1.8.1-1
ii  python3-pyproject-hooks  1.0.0-2
ii  python3-requests 2.31.0+dfsg-1
ii  python3-requests-toolbelt1.0.0-2
ii  python3-shellingham  1.5.4-1
ii  python3-tomli2.0.1-2
ii  python3-tomlkit  0.12.1-1
ii  python3-trove-classifiers2023.9.19-1
ii  python3-virtualenv   20.25.0+ds-1

python3-poetry recommends no packages.

python3-poetry suggests no packages.

-- no debconf information

-- 
Tomáš "liskin" ("Pivník") Janoušek, https://lisk.in/