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

Lucas Nussbaum lucas at debian.org
Sat Jan 14 12:44:49 GMT 2023


Source: salt-pylint
Version: 2020.9.28-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --buildsystem=pybuild --with python3
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.10 setup.py config 
> running config
> I: pybuild base:240: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3.10 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/strings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/smartup.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/blacklist.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/thirdparty.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/pep8.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/fileperms.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/virt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/dunder_del.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/minpyver.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/checkers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> copying saltpylint/pep263.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/ext
> copying saltpylint/ext/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/ext
> copying saltpylint/ext/pyqver2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/ext
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize
> copying saltpylint/py3modernize/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_map_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_dict_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_input_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_filter_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_xrange_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_zip_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_imports_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/saltpylint/py3modernize/fixes
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/strings.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/smartup.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/blacklist.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/thirdparty.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/pep8.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/fileperms.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/virt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/dunder_del.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/minpyver.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/checkers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> copying saltpylint/pep263.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/ext
> copying saltpylint/ext/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/ext
> copying saltpylint/ext/pyqver2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/ext
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize
> copying saltpylint/py3modernize/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_map_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_dict_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_input_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_filter_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_xrange_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_zip_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
> copying saltpylint/py3modernize/fixes/fix_imports_salt_six.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/saltpylint/py3modernize/fixes
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m unittest discover -v 
> saltpylint.py3modernize (unittest.loader._FailedTest) ... ERROR
> 
> ======================================================================
> 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'
> 
> 
> ----------------------------------------------------------------------
> Ran 1 test in 0.000s
> 
> FAILED (errors=1)
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m unittest discover -v 
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m unittest discover -v 
> 
> ----------------------------------------------------------------------
> Ran 0 tests in 0.000s
> 
> OK
> dh_auto_test: error: pybuild --test -i python{version} -p "3.10 3.11" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/01/13/salt-pylint_2020.9.28-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-salt-team mailing list