distro-info: autopkgtests fail due to missing tomli dependency

Bug #2002820 reported by Simon Chopin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
distro-info (Ubuntu)
Fix Released
Undecided
Unassigned
pylint (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Here's an excerpt of the failure:

FAIL: test_pylint (distro_info_test.test_pylint.PylintTestCase)
Test: Run pylint on Python source code.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.4poy97/autopkgtest_tmp/distro_info_test/test_pylint.py", line 73, in test_pylint
    self.fail("\n".join(msgs))
AssertionError: pylint exited with code 1 and has unexpected output on stderr:
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/pylint/__main__.py", line 10, in <module>
    pylint.run_pylint()
  File "/usr/lib/python3/dist-packages/pylint/__init__.py", line 32, in run_pylint
    from pylint.lint import Run as PylintRun
  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'

The root cause of the issue is this: https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/2002819

However, since I'm not sure how quickly we can find a satisfactory fix for that issue, I figure we could address the problem locally first by temporarily adding python3-tomli as a dependency of the distro-info test, or pylint itself (unconditionally)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pylint - 2.15.9-1ubuntu1

---------------
pylint (2.15.9-1ubuntu1) lunar; urgency=medium

  * Temporarily add an unconditional dependency on python3-tomli to keep
    the package working with python3.10 (LP: #2002820)

 -- Simon Chopin <email address hidden> Fri, 13 Jan 2023 15:11:58 +0100

Changed in pylint (Ubuntu):
status: New → Fix Released
Revision history for this message
Benjamin Drung (bdrung) wrote :

This was fixed in distro-info 1.3.

Changed in distro-info (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.