[Bug 2002820] [NEW] distro-info: autopkgtests fail due to missing tomli dependency

Simon Chopin 2002820 at bugs.launchpad.net
Fri Jan 13 14:09:10 UTC 2023


Public bug reported:

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)

** Affects: distro-info (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pylint (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: pylint (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to distro-info in Ubuntu.
https://bugs.launchpad.net/bugs/2002820

Title:
  distro-info: autopkgtests fail due to missing tomli dependency

Status in distro-info package in Ubuntu:
  New
Status in pylint package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/distro-info/+bug/2002820/+subscriptions




More information about the foundations-bugs mailing list