Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1028762: pylint-plugin-utils: FTBFS: ModuleNotFoundError: No module named 'tomli'

153 views
Skip to first unread message

Sebastiaan Couwenberg

unread,
Jan 19, 2023, 6:00:03 AM1/19/23
to
On Sat, 14 Jan 2023 13:42:27 +0100 Lucas Nussbaum wrote:
> > ======================================================================
> > ERROR: pylint_plugin_utils (unittest.loader._FailedTest)
> > ----------------------------------------------------------------------
> > ImportError: Failed to import test module: pylint_plugin_utils
> > 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_pylint-plugin-utils/build/pylint_plugin_utils/__init__.py", line 4, in <module>
> > from pylint.lint import PyLinter
> > File "/usr/lib/python3/dist-packages/pylint/lint/__init__.py", line 19, in <module>
> > from pylint.config.exceptions import ArgumentPreprocessingError
> > 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
0 new messages