FS#76809 - [python-poetry] is missing python-tomli dependency

Attached to Project: Community Packages
Opened by Mateusz Bączek (wint3rmute) - Monday, 12 December 2022, 14:19 GMT
Last edited by Caleb Maclennan (alerque) - Friday, 06 January 2023, 12:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

After installing poetry and trying to run it, the following error appears:
```
Traceback (most recent call last):
File "/usr/sbin/poetry", line 5, in <module>
from poetry.console.application import main
File "/usr/lib/python3.10/site-packages/poetry/console/application.py", line 19, in <module>
from poetry.__version__ import __version__
File "/usr/lib/python3.10/site-packages/poetry/__version__.py", line 5, in <module>
from poetry.utils._compat import metadata
File "/usr/lib/python3.10/site-packages/poetry/utils/_compat.py", line 13, in <module>
import tomli as tomllib
ModuleNotFoundError: No module named 'tomli'
```

The problem can be resolved with installing `python-tomli`, I'm guessing it is a missing dependency.

Additional info:
* poetry version: `1.3.0-1`

Steps to reproduce:

On a fresh Arch install, run:
1. `pacman -Syu poetry`
2. `poetry`

Note: I'been testing this in Docker, the exact command used was:
- `docker run -it archlinux:latest bash -c "pacman -Sy python-poetry --noconfirm; poetry"` to reproduce the bug
- `docker run -it archlinux:latest bash -c "pacman -Sy python-tomli python-poetry --noconfirm; poetry"` to test whether installing `python-tomli` fixes the error
This task depends upon

Closed by  Caleb Maclennan (alerque)
Friday, 06 January 2023, 12:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-poetry 2.3.1-2

Loading...