Bug 1902262 - gitlint: FTBFS in Fedora rawhide
Summary: gitlint: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gitlint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Kitt
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F34FTBFS PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-27 14:11 UTC by Tomáš Hrnčiar
Modified: 2020-11-27 15:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-27 15:26:16 UTC
Type: Bug


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-11-27 14:11:25 UTC
Description of problem:
Package gitlint fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
0.15.0-1.fc34

Steps to Reproduce:
koji build --scratch f34 gitlint-0.15.0-1.fc34

Additional info:
======================================================================
ERROR: test_user_defined (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_user_defined
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_user_defined.py", line 3, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_stdin (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_stdin
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_stdin.py", line 5, in <module>
    from qa.shell import echo, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_named_rules (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_named_rules
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_named_rules.py", line 2, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_hooks (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_hooks
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_hooks.py", line 4, in <module>
    from qa.shell import git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_gitlint (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_gitlint
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_gitlint.py", line 5, in <module>
    from qa.shell import echo, git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_contrib (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_contrib
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_contrib.py", line 3, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_config (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_config
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_config.py", line 6, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: test_commits (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_commits
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_commits.py", line 7, in <module>
    from qa.shell import echo, git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: shell (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: shell
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: base (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: base
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/base.py", line 18, in <module>
    from qa.shell import git, gitlint, RunningCommand
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_commits (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_commits
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_commits.py", line 7, in <module>
    from qa.shell import echo, git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_config (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_config
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_config.py", line 6, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_contrib (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_contrib
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_contrib.py", line 3, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_gitlint (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_gitlint
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_gitlint.py", line 5, in <module>
    from qa.shell import echo, git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_hooks (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_hooks
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_hooks.py", line 4, in <module>
    from qa.shell import git, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_named_rules (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_named_rules
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_named_rules.py", line 2, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_stdin (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_stdin
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_stdin.py", line 5, in <module>
    from qa.shell import echo, gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


======================================================================
ERROR: qa.test_user_defined (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: qa.test_user_defined
Traceback (most recent call last):
  File "/usr/lib64/python3.10/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib64/python3.10/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/test_user_defined.py", line 3, in <module>
    from qa.shell import gitlint
  File "/builddir/build/BUILD/gitlint-0.15.0/qa/shell.py", line 9, in <module>
    from sh import git, echo, gitlint  # pylint: disable=unused-import,no-name-in-module,import-error
ImportError: cannot import name 'gitlint' from 'sh' (/usr/lib/python3.10/site-packages/sh.py)


----------------------------------------------------------------------
Ran 98 tests in 0.129s

FAILED (errors=18)
Test failed: <unittest.runner.TextTestResult run=98 errors=18 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=98 errors=18 failures=0>
error: Bad exit status from /var/tmp/rpm-tmp.kCgkCu (%check)

Comment 1 Stephen Kitt 2020-11-27 14:23:53 UTC
Fixed: https://koji.fedoraproject.org/koji/taskinfo?taskID=56324910


Note You need to log in before you can comment on or make changes to this bug.