#1058670 python3-poetry: fail with Can't instantiate abstract class IsolatedEnv with abstract methods executable, scripts_dir

#1058670#5
Date:
2023-12-14 10:14:12 UTC
From:
To:
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

#1058670#10
Date:
2023-12-23 14:54:25 UTC
From:
To:
Hi,

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 :-(

[1]: https://github.com/python-poetry/poetry/blob/1.7.1/pyproject.toml#L37

#1058670#21
Date:
2024-01-16 14:42:56 UTC
From:
To:
Control: severity -1 serious
Broken dependencies is a serious bug.  Upgrading severity again.

Emmanuel, do you have any plan to update python3-build and fix poetry's
dependencies?

Cheers,
Julien

#1058670#28
Date:
2024-01-30 04:19:10 UTC
From:
To:
Hi,

Thanks for the report and the information.

This is probably a bug for python3-build to update new upstream release.
In despite of this I will contact maintainer and/or update the package.

Cheers!