Package: python3-poetry
Version: 1.5.1+dfsg-3
Severity: important
Dear Maintainer,
When using poetry in Debian testing, some commands fail. For example:
$ poetry env list -vvv
TypeError
unsupported operand type(s) for /: 'str' and 'str'
at /usr/lib/python3/dist-packages/poetry/json/__init__.py:41 in
validate_object
37│
38│ errors.append(message)
39│
40│ core_schema = json.loads(
→ 41│ (CORE_SCHEMA_DIR / "poetry-
schema.json").read_text(encoding="utf-8")
42│ )
43│
44│ properties = {*schema["properties"].keys(),
*core_schema["properties"].keys()}
45│ additional_properties = set(obj.keys()) - properties
This happens because this poetry version is incompatible with the poetry-core
version available in testing. In fact, poetry version 1.5.1 depends on poetry-
core 1.6.1 in upstream: https://github.com/python-
poetry/poetry/blob/1.5.1/pyproject.toml#L35
Since upstream sets this as a fixed dependency (no caret or tilde), the two
packages (poetry and poetry-core) should maybe be upgraded together to always
be compatible.
Installing poetry-core from unstable works around the issue. Additional
information in this bug report states version 1.6.1-2 but this is because I've
already installed that from unstable. The version in testing (and probably
stable too) is 1.4.0-4.
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.4.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.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 3.11.4-5+b1
ii python3-build 0.10.0-1
ii python3-cachecontrol 0.13.1-1
ii python3-cleo 2.0.1-5
ii python3-crashtest 0.4.1-1
ii python3-dulwich 0.21.5-1
ii python3-filelock 3.12.2-1
ii python3-html5lib 1.1-3
ii python3-importlib-metadata 4.12.0-1
ii python3-installer 0.7.0+dfsg1-2
ii python3-jsonschema 4.10.3-2
ii python3-keyring 24.2.0-1
ii python3-lockfile 1:0.12.2-3
ii python3-packaging 23.1-1
ii python3-pexpect 4.8.0-4
ii python3-pkginfo 1.8.2-2
ii python3-platformdirs 3.10.0-1
ii python3-poetry-core 1.6.1-2
ii python3-pyproject-hooks 1.0.0-2
ii python3-requests 2.31.0+dfsg-1
ii python3-requests-toolbelt 1.0.0-1
ii python3-shellingham 1.5.1-1
ii python3-tomlkit 0.12.1-1
ii python3-trove-classifiers 2023.7.6-1
ii python3-urllib3 1.26.16-1
ii python3-virtualenv 20.24.1+ds-1
python3-poetry recommends no packages.
python3-poetry suggests no packages.
-- no debconf information