Bug#1025025: ImportError: cannot import name 'Application' from 'cleo'

2022-12-14 Thread George Shuklin

close 1025025

I've used debian:bookworm Docker image.

I rechecked it now, and problem seems to be solved:

docker run  --rm -ti debian:bookworm

# apt update && apt install -y python3-poetry
# /usr/bin/poetry config virtualenvs.create false
#

Thank you very much for help.

On 12/14/22 19:49, Emmanuel Arias wrote:


Hi George,

Thanks for the report.

I assume that you are in testing. Please can you try again? 
python-cleo was migrated to testing

yesterday [0]

[0] 
https://tracker.debian.org/news/1398131/python-cleo-100a5-3-migrated-to-testing/


Please, let me know.

Cheers,
Emmanuel

On Fri, Dec 9, 2022 at 2:21 PM George Shuklin 
 wrote:


Unfortunately, 1.2.2+dfsg-1didn't fixed the problem:

dpkg -l|grep poetr
ii  python3-poetry  1.2.2+dfsg-1

/usr/bin/poetry config virtualenvs.create false
Traceback (most recent call last):
   File "/usr/bin/poetry", line 5, in 
 from poetry.console.application import main
   File
"/usr/lib/python3/dist-packages/poetry/console/application.py",
line 13, in 
 from cleo.events.console_events import COMMAND
ModuleNotFoundError: No module named 'cleo.events'


Bug#1025025: ImportError: cannot import name 'Application' from 'cleo'

2022-12-14 Thread Emmanuel Arias
Hi George,

Thanks for the report.

I assume that you are in testing. Please can you try again? python-cleo was
migrated to testing
yesterday [0]

[0]
https://tracker.debian.org/news/1398131/python-cleo-100a5-3-migrated-to-testing/

Please, let me know.

Cheers,
Emmanuel

On Fri, Dec 9, 2022 at 2:21 PM George Shuklin 
wrote:

> Unfortunately, 1.2.2+dfsg-1didn't fixed the problem:
>
> dpkg -l|grep poetr
> ii  python3-poetry  1.2.2+dfsg-1
>
> /usr/bin/poetry config virtualenvs.create false
> Traceback (most recent call last):
>File "/usr/bin/poetry", line 5, in 
>  from poetry.console.application import main
>File "/usr/lib/python3/dist-packages/poetry/console/application.py",
> line 13, in 
>  from cleo.events.console_events import COMMAND
> ModuleNotFoundError: No module named 'cleo.events'
>
>


Bug#1025025: ImportError: cannot import name 'Application' from 'cleo'

2022-12-09 Thread George Shuklin

Unfortunately, 1.2.2+dfsg-1didn't fixed the problem:

dpkg -l|grep poetr
ii  python3-poetry  1.2.2+dfsg-1

/usr/bin/poetry config virtualenvs.create false
Traceback (most recent call last):
  File "/usr/bin/poetry", line 5, in 
    from poetry.console.application import main
  File "/usr/lib/python3/dist-packages/poetry/console/application.py", 
line 13, in 

    from cleo.events.console_events import COMMAND
ModuleNotFoundError: No module named 'cleo.events'



Bug#1025025: ImportError: cannot import name 'Application' from 'cleo'

2022-11-29 Thread Emmanuel Arias

Hi,

Thanks for the report.

I'm working in the new upstream release of poetry. As you mentioned this 
will be fixed.


Fyi, poetry-core and python-cleo are ready.

Cheers,

--
Emmanuel



OpenPGP_0xFA9DEC5DE11C63F1.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1025025: ImportError: cannot import name 'Application' from 'cleo'

2022-11-28 Thread Agathe Porte
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 
from poetry.console import main
  File "/usr/lib/python3/dist-packages/poetry/console/__init__.py", line 1, 
in 
from .application import Application
  File "/usr/lib/python3/dist-packages/poetry/console/application.py", line 
3, in 
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-cachecontrol0.12.12-2
ii  python3-cachy   0.3.0-4
ii  python3-cleo1.0.0a5-1
ii  python3-clikit  0.6.2-3
ii  python3-html5lib1.1-3
ii  python3-importlib-metadata  4.12.0-1
ii  python3-lockfile1: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-requests2.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