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

#1029156#5
Date:
2023-01-18 16:33:54 UTC
From:
To:
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

#1029156#10
Date:
2023-01-21 22:32:55 UTC
From:
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