[Pkg-salt-team] Bug#1028753: salt-pylint: FTBFS: ModuleNotFoundError: No module named 'tomli'

Sebastiaan Couwenberg sebastic at xs4all.nl
Thu Jan 19 10:50:18 GMT 2023


On Sat, 14 Jan 2023 13:44:49 +0100 Lucas Nussbaum wrote:
> ======================================================================
> ERROR: saltpylint.py3modernize (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: saltpylint.py3modernize
> Traceback (most recent call last):
>   File "/usr/lib/python3.10/unittest/loader.py", line 470, in _find_test_path
>     package = self._get_module_from_name(name)
>   File "/usr/lib/python3.10/unittest/loader.py", line 377, in _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/__init__.py", line 24, in <module>
>     from saltpylint.checkers import BaseChecker
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/checkers.py", line 13, in <module>
>     from pylint.checkers import BaseChecker as _BaseChecker
>   File "/usr/lib/python3/dist-packages/pylint/checkers/__init__.py", line 48, in <module>
>     from pylint.checkers.base_checker import (
>   File "/usr/lib/python3/dist-packages/pylint/checkers/base_checker.py", line 17, in <module>
>     from pylint.config.arguments_provider import _ArgumentsProvider
>   File "/usr/lib/python3/dist-packages/pylint/config/__init__.py", line 25, in <module>
>     from pylint.config.arguments_provider import UnsupportedAction
>   File "/usr/lib/python3/dist-packages/pylint/config/arguments_provider.py", line 15, in <module>
>     from pylint.config.arguments_manager import _ArgumentsManager
>   File "/usr/lib/python3/dist-packages/pylint/config/arguments_manager.py", line 50, in <module>
>     import tomli as tomllib
> ModuleNotFoundError: No module named 'tomli'

pylint has this dependency:

  python3-tomli | python3 (>> 3.11)

Because python3.11 is now default python3-tomli doesn't get installed 
even though it's still required for python3.10.

python3-tomli should probably be an hard dependency of pylint until 
python3.10 is removed.

Kind Regards,

Bas

-- 
  GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the pkg-salt-team mailing list