Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

157 views
Skip to first unread message

George Shuklin

unread,
Dec 14, 2023, 5:20:05 AM12/14/23
to
Package: python3-poetry
Version: 1.7.1+dfsg-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: george....@gmail.com

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

Tomas Janousek

unread,
Dec 23, 2023, 10:10:05 AM12/23/23
to

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

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

Julien Cristau

unread,
Jan 16, 2024, 9:50:04 AM1/16/24
to
Control: severity -1 serious

On Sat, Dec 23, 2023 at 15:54:25 +0100, Tomas Janousek wrote:

> 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)".
>
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

Emmanuel Arias

unread,
Jan 29, 2024, 11:30:05 PM1/29/24
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!

signature.asc

Emmanuel Arias

unread,
Jan 31, 2024, 4:50:05 AM1/31/24
to
Hi,

sergiodj upload the new upstream release of python3-build [0]. -doc
package was added.

Meanwhile I will try to add some autopkgtest to detect this kind of
bugs.

Thanks!

[0] https://ftp-master.debian.org/new/python-build_1.0.3-1.html
--
cheers,
Emmanuel Arias

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