Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#73090 - Wrong (outdated) dependency on `mypy`

Attached to Project: Community Packages
Opened by Martin L. (wuestengecko) - Sunday, 19 December 2021, 21:13 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 20 December 2021, 21:20 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Morten Linderud (Foxboron)
Filipe LaĆ­ns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description:

The `mypy` package depends on `python-toml`, however upstream has switched to the `tomli` package (which is available as `python-tomli` in `extra`).


Additional info:
* package version(s): mypy 0.920-1
* config and/or log files etc.:

(In a clean chroot, after `pacman -S mypy`)

```
[root@tiah /]# mypy
Traceback (most recent call last):
File "/usr/bin/mypy", line 33, in <module>
sys.exit(load_entry_point('mypy==0.920', 'console_scripts', 'mypy')())
File "/usr/bin/mypy", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/mypy/__main__.py", line 6, in <module>
from mypy.main import main
File "/usr/lib/python3.10/site-packages/mypy/main.py", line 13, in <module>
from mypy import build
File "/usr/lib/python3.10/site-packages/mypy/build.py", line 59, in <module>
from mypy.config_parser import parse_mypy_comments
File "/usr/lib/python3.10/site-packages/mypy/config_parser.py", line 9, in <module>
import tomli
ModuleNotFoundError: No module named 'tomli'
```
* ~~link to upstream bug report, if any~~

Steps to reproduce:

1. Install `mypy` on a fresh system
2. Run `mypy`
This task depends upon

Loading...