Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1734773 - python-daemon fails to build with Python 3.8
Summary: python-daemon fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-daemon
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-07-31 12:05 UTC by Miro Hrončok
Modified: 2019-11-02 21:19 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-20 12:26:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-07-31 12:05:57 UTC
python-daemon fails to build with Python 3.8.0b3. The failure happens with Python 2 tests.

+ /usr/bin/python2 -m unittest discover
.........................................................................................................EEEEE.................................................................................s....................s...............................................................................................................................................
======================================================================
ERROR: test_returns_expected_result (test_version.get_changelog_path_TestCase)
test_version.get_changelog_path_TestCase.test_returns_expected_result (simple)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "test_version.py", line 1149, in test_returns_expected_result
    result = version.get_changelog_path(**args)
  File "version.py", line 564, in get_changelog_path
    build_py_command = distutils.command.build_py.build_py(distribution)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 163, in __init__
    _Command.__init__(self, dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance


======================================================================
ERROR: test_returns_expected_result (test_version.get_changelog_path_TestCase)
test_version.get_changelog_path_TestCase.test_returns_expected_result (unusual script name)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "test_version.py", line 1149, in test_returns_expected_result
    result = version.get_changelog_path(**args)
  File "version.py", line 564, in get_changelog_path
    build_py_command = distutils.command.build_py.build_py(distribution)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 163, in __init__
    _Command.__init__(self, dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance


======================================================================
ERROR: test_returns_expected_result (test_version.get_changelog_path_TestCase)
test_version.get_changelog_path_TestCase.test_returns_expected_result (relative script path)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "test_version.py", line 1149, in test_returns_expected_result
    result = version.get_changelog_path(**args)
  File "version.py", line 564, in get_changelog_path
    build_py_command = distutils.command.build_py.build_py(distribution)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 163, in __init__
    _Command.__init__(self, dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance


======================================================================
ERROR: test_returns_expected_result (test_version.get_changelog_path_TestCase)
test_version.get_changelog_path_TestCase.test_returns_expected_result (absolute script path)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "test_version.py", line 1149, in test_returns_expected_result
    result = version.get_changelog_path(**args)
  File "version.py", line 564, in get_changelog_path
    build_py_command = distutils.command.build_py.build_py(distribution)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 163, in __init__
    _Command.__init__(self, dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance


======================================================================
ERROR: test_returns_expected_result (test_version.get_changelog_path_TestCase)
test_version.get_changelog_path_TestCase.test_returns_expected_result (specify filename)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "test_version.py", line 1149, in test_returns_expected_result
    result = version.get_changelog_path(**args)
  File "version.py", line 564, in get_changelog_path
    build_py_command = distutils.command.build_py.build_py(distribution)
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 163, in __init__
    _Command.__init__(self, dist)
  File "/usr/lib64/python2.7/distutils/cmd.py", line 59, in __init__
    raise TypeError, "dist must be a Distribution instance"
TypeError: dist must be a Distribution instance


----------------------------------------------------------------------
Ran 356 tests in 2.400s

FAILED (errors=5, skipped=2)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00989686-python-daemon/

For all our attempts to build python-daemon with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-daemon/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Miro Hrončok 2019-07-31 12:07:21 UTC
A rawhide scratchbuild to see if this happens in Fedora 31 as well:

https://koji.fedoraproject.org/koji/taskinfo?taskID=36703980

Comment 2 Miro Hrončok 2019-08-05 09:01:14 UTC
We'd like to start the Python 3.8 rebuild right after branching and this package is important, because it blocks python3-moksha-hub, python3-fedmsg...

Comment 3 Ben Cotton 2019-08-13 16:58:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 18:33:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Miro Hrončok 2019-08-14 22:24:43 UTC
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

To wait for a build to show up in the side tag, do:

    $ koji wait-repo f32-python --build=<nvr>

Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.

An updated mock config is posted at:
http://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.

Thanks. Let us know if you need up to date info, or if you have any questions.



PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:

    on branch f31:
    $ fedpkg build

Comment 6 Miro Hrončok 2019-08-19 18:22:57 UTC
The following packages are impacted by the failure:

$ repoquery --repo=rawhide{,-source} --whatrequires python3-daemon
copr-backend-0:1.124-1.fc31.noarch
copr-backend-0:1.124-1.fc31.src
hddfancontrol-0:1.2.10-2.fc31.noarch
hddfancontrol-0:1.2.10-2.fc31.src
nodepool-0:3.0.0-5.fc31.noarch
nodepool-0:3.0.0-5.fc31.src
python-ansible-runner-0:1.3.4-2.fc31.src
python-moksha-hub-0:1.5.17-4.fc31.src
python3-ansible-runner-0:1.3.4-2.fc31.noarch
python3-gear-0:0.14.0-1.fc32.noarch
python3-moksha-hub-0:1.5.17-4.fc31.noarch

So CCing all the impacted maintainers.

Comment 7 Pierre-YvesChibon 2019-08-20 09:22:13 UTC
Reported upstream at: https://pagure.io/python-daemon/issue/41

Comment 8 Pierre-YvesChibon 2019-08-20 12:26:43 UTC
Okido, I've got it to build successfully on the regular rawhide (via a scratch build) as well as in the f32-python side tag (regular build).

I guess we can close this one :)

Comment 9 Miro Hrončok 2019-08-20 12:29:13 UTC
Thank You!


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