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

Bug#1029156: python3-poetry: ImportError: cannot import name 'CleoError'

705 views
Skip to first unread message

Alex Pyrgiotis

unread,
Jan 18, 2023, 11:40:03 AM1/18/23
to
Package: python3-poetry
Version: 1.3.2+dfsg-2
Severity: normal

Dear Maintainer,

Running `poetry install`, I encounter the following error:

Traceback (most recent call last):
File "/usr/bin/poetry", line 5, in <module>
from poetry.console.application import main
File "/usr/lib/python3/dist-packages/poetry/console/application.py",
line 15, in <module>
from cleo.exceptions import CleoError
ImportError: cannot import name 'CleoError' from 'cleo.exceptions'
(/usr/lib/python3/dist-packages/cleo/exceptions/__init__.py)

The missing class was introduced on python3-cleo >= 1.0.0, whereas the system
has python3-cleo == 1.0.0a5-3. Ideally, by bumping python3-cleo on Debian
Bookworm, Poetry should work again.

Thanks,
Alex

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.1-arch1-1 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages python3-poetry depends on:
ii python3 3.10.6-3+b1
ii python3-cachecontrol 0.12.12-2
ii python3-cleo 1.0.0a5-3
ii python3-crashtest 0.4.1-1
ii python3-dulwich 0.20.50-1+b1
ii python3-filelock 3.9.0-1
ii python3-html5lib 1.1-3
ii python3-importlib-metadata 4.12.0-1
ii python3-jsonschema 4.9.1-3
ii python3-keyring 23.9.3-2
ii python3-lockfile 1:0.12.2-2.2
ii python3-packaging 22.0-2
ii python3-pexpect 4.8.0-4
ii python3-pkginfo 1.8.2-2
ii python3-platformdirs 2.6.0-1
ii python3-poetry-core 1.3.2-3
ii python3-requests 2.28.1+dfsg-1
ii python3-requests-toolbelt 0.10.1-1
ii python3-shellingham 1.5.0-1
ii python3-tomli 2.0.1-2
ii python3-tomlkit 0.11.6-1
ii python3-urllib3 1.26.12-1
ii python3-virtualenv 20.17.1+ds-1

python3-poetry recommends no packages.

python3-poetry suggests no packages.

-- no debconf information

Emmanuel Arias

unread,
Jan 21, 2023, 5:42:32 PM1/21/23
to
Hi Alex,

Thanks for the report. Python-cleo's migrated today [0] so this issue
will should be already fixed.

Your bug report is in autopkgtest [1]. I'm going to mark this bug as
done when the autopkgtest run OK.

Thanks,
Cheers,
Emmanuel

[0] https://tracker.debian.org/news/1411488/python-cleo-201-5-migrated-to-testing/
[1] https://ci.debian.net/data/autopkgtest/testing/amd64/p/poetry/30515823/log.gz
signature.asc
0 new messages