Community Packages

Please read this before reporting a bug:

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!

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 Morten Linderud (Foxboron) - Thursday, 11 May 2023, 21:05 GMT
Task Type Bug Report
Category Packages
Status Closed
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 100%
Votes 1
Private No



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/", line 162, in load
module = import_module('module'))
File "/usr/lib/python3.10/importlib/", 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/", line 6, in <module>
from mypy.main import main
File "/usr/lib/python3.10/site-packages/mypy/", line 13, in <module>
from mypy import build
File "/usr/lib/python3.10/site-packages/mypy/", line 59, in <module>
from mypy.config_parser import parse_mypy_comments
File "/usr/lib/python3.10/site-packages/mypy/", 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

Closed by  Morten Linderud (Foxboron)
Thursday, 11 May 2023, 21:05 GMT
Reason for closing:  Fixed