Bug 52789 - poetry падает с необработанным исключением при попытке использования
Summary: poetry падает с необработанным исключением при попытке использования
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-poetry (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Yuri N. Sedunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 52703
Blocks:
  Show dependency tree
 
Reported: 2025-01-22 13:56 MSK by Alexandr Shashkin
Modified: 2025-01-22 16:40 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Shashkin 2025-01-22 13:56:34 MSK
Версии пакетов
--------------
python3-module-poetry      1.8.5-alt1
python3-module-poetry-core 2.0.1-alt1

Шаги воспроизведения
--------------------
1) Установить poetry: apt-get install -y python3-module-poetry
2) Вызвать справку: $ poetry --help

Фактический результат
---------------------
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/cleo/application.py", line 316, in run
    exit_code = self._run(io)
                ^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/poetry/console/application.py", line 188, in _run
    self._load_plugins(io)
  File "/usr/lib/python3/site-packages/poetry/console/application.py", line 354, in _load_plugins
    manager.load_plugins()
  File "/usr/lib/python3/site-packages/poetry/plugins/plugin_manager.py", line 38, in load_plugins
    self._load_plugin_entry_point(ep)
  File "/usr/lib/python3/site-packages/poetry/plugins/plugin_manager.py", line 76, in _load_plugin_entry_point
    plugin = ep.load()  # type: ignore[no-untyped-call]
.............
    from poetry.core.exceptions import PoetryCoreException
ImportError: cannot import name 'PoetryCoreException' from 'poetry.core.exceptions' (/usr/lib/python3/site-packages/poetry/core/exceptions/__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
.............
    self.set_solution_provider_repository(self._get_solution_provider_repository())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Application' object has no attribute 'set_solution_provider_repository'. Did you mean: '_get_solution_provider_repository'?

Ожидаемый результат
-------------------
Выводится сообщение справка.
Comment 1 Yuri N. Sedunov 2025-01-22 15:45:49 MSK
Проверьте 2.0.1
https://git.altlinux.org/tasks/370836/
Comment 2 Alexandr Shashkin 2025-01-22 16:29:15 MSK
Скачал rpm из таска https://git.altlinux.org/tasks/370836/. Проверил. У меня работает. Спасибо!