poetry fails to install packages (`poetry install` for an existing lock file)
or to
update it (`poetry update`):
Can't instantiate abstract class IsolatedEnv with abstract methods
executable, scripts_dir
at /usr/lib/python3/dist-packages/poetry/installation/chef.py:131 in _prepare
127│ ) -> Path:
128│ from subprocess import CalledProcessError
129│
130│ with ephemeral_environment(self._env.python) as venv:
→ 131│ env = IsolatedEnv(venv, self._pool)
132│ builder = ProjectBuilder.from_isolated_env(
133│ env, directory, runner=quiet_subprocess_runner
134│ )
135│ env.install(builder.build_system_requires)
According to github bug: https://github.com/python-poetry/poetry/issues/8458 it
is caused by conflict (interactions?) with python3-build package.
python3-build 0.10.0-1
-- System Information:
Debian Release: trixie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.0-5-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
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.6-1
ii python3-build 0.10.0-1
ii python3-cachecontrol 0.13.1-1
ii python3-cleo 2.1.0-2
ii python3-crashtest 0.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-installer 0.7.0+dfsg1-2
ii python3-keyring 24.3.0-1
ii python3-lockfile 1:0.12.2-3
ii python3-packaging 23.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-toolbelt 1.0.0-2
ii python3-shellingham 1.5.4-1
ii python3-tomli 2.0.1-2
ii python3-tomlkit 0.12.1-1
ii python3-trove-classifiers 2023.9.19-1
ii python3-virtualenv 20.25.0+ds-1
python3-poetry recommends no packages.
python3-poetry suggests no packages.
-- no debconf information
Control: severity 1058670 important
Control: forwarded 1058670 https://github.com/python-poetry/poetry/issues/8803
Hi,
On Thu, Dec 14, 2023 at 12:14:12PM +0200, George Shuklin wrote:
According to github bug: https://github.com/python-poetry/poetry/issues/8458 it
is caused by conflict (interactions?) with python3-build package.python3-build 0.10.0-1
Indeed, as https://github.com/python-poetry/poetry/issues/8803 explains, poetry 1.7.1 needs python3-build ^= 1.0.3 1, yet the Debian python3-poetry package just depends on python3-build without any version constraints and python3-build is still at 0.10.0-1 in Debian unstable.
Additionally, python3-poetry version 1.6.1+dfsg-2 also has an unbounded dependency on python3-build despite its /usr/lib/python3/dist-packages/poetry-1.6.1.dist-info/METADATA clearly specifying the dependency as "Requires-Dist: build (>=0.10.0,<0.11.0)".
Something is seriously wrong with dh_python it seems :-(