Package: python3-poetry
Version: 1.1.14+dfsg-1
Severity: serious
X-Debbugs-Cc: deb...@microjoe.org

Dear Maintainer,

When invoking poetry locally, I get the following error:

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

Indeed, the installed python3-cleo package does not seem to have the
'Application' item directly available into its namespace:

    Python 3.10.8 (main, Nov  4 2022, 09:21:25) [GCC 12.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import cleo
    >>> dir(cleo)
    ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__',
    '__name__', '__package__', '__path__', '__spec__', '__version__',
    'annotations']
    >>>

The latest upstream poetry source code [1] seems to correctly use the
`cleo.application` namespace.

[1] 
https://github.com/python-poetry/poetry/blob/master/src/poetry/console/application.py

Thanks,

Agathe.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
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                     3.10.6-3
ii  python3-cachecontrol        0.12.12-2
ii  python3-cachy               0.3.0-4
ii  python3-cleo                1.0.0a5-1
ii  python3-clikit              0.6.2-3
ii  python3-html5lib            1.1-3
ii  python3-importlib-metadata  4.12.0-1
ii  python3-lockfile            1:0.12.2-2.2
ii  python3-packaging           21.3-1.1
ii  python3-pexpect             4.8.0-3
ii  python3-pkginfo             1.8.2-1
ii  python3-poetry-core         1.3.2-1
ii  python3-requests            2.28.1+dfsg-1
ii  python3-requests-toolbelt   0.9.1-3
ii  python3-shellingham         1.5.0-1
ii  python3-tomlkit             0.11.6-1
ii  python3-virtualenv          20.16.6+ds-1

python3-poetry recommends no packages.

python3-poetry suggests no packages.

-- no debconf information

Reply via email to