Bug 2113754

Summary: virt-manager: FTBFS in Fedora rawhide/f37
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, crobinso, mhroncok, philip.wyett, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-4.0.0-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-03 09:46:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2016048, 2045102, 2064842    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2022-08-02 00:19:23 UTC
virt-manager failed to build from source in Fedora rawhide/f37

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Please fix virt-manager at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
virt-manager will be orphaned. Before branching of Fedora 38,
virt-manager will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-08-02 00:19:26 UTC
Created attachment 1902679 [details]
build.log

Comment 2 Fedora Release Engineering 2022-08-02 00:19:28 UTC
Created attachment 1902680 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-08-02 00:19:29 UTC
Created attachment 1902681 [details]
state.log

Comment 4 Daniel Berrangé 2022-08-02 09:38:11 UTC
An incompatibility with latest setuptools

+ ./setup.py configure --default-hvs qemu,xen,lxc
error: Multiple top-level packages discovered in a flat-layout: ['po', 'ui', 'man', 'data', 'virtinst', 'virtManager'].
To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.
If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
To find more information, look for "package discovery" on setuptools docs.

Comment 5 Miro Hrončok 2022-08-02 11:11:56 UTC
This package has Python 3.10 bytecode in it:

/usr/share/virt-manager/virtManager/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/about.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/addhardware.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/asyncjob.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/baseclass.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/clone.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/config.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/connection.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/connmanager.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/createconn.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/createnet.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/createpool.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/createvm.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/createvol.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/delete.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/engine.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/error.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/host.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/hostnets.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/hoststorage.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/manager.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/migrate.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/oslist.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/preferences.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/storagebrowse.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/systray.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/virtmanager.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/vmmenu.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/vmwindow.cpython-310.pyc
/usr/share/virt-manager/virtManager/__pycache__/xmleditor.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/console.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/details.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/serialcon.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/snapshots.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/sshtunnels.cpython-310.pyc
/usr/share/virt-manager/virtManager/details/__pycache__/viewers.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/addstorage.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/fsdetails.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/gfxdetails.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/mediacombo.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/netlist.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/tpmdetails.cpython-310.pyc
/usr/share/virt-manager/virtManager/device/__pycache__/vsockdetails.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/connectauth.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/graphwidgets.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/inspection.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/keyring.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/libvirtenummap.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/module_trace.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/statsmanager.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/testmock.cpython-310.pyc
/usr/share/virt-manager/virtManager/lib/__pycache__/uiutil.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/domain.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/libvirtobject.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/network.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/nodedev.cpython-310.pyc
/usr/share/virt-manager/virtManager/object/__pycache__/storagepool.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/_progresspriv.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/buildconfig.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/capabilities.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/cli.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/cloner.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/connection.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/diskbackend.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/domcapabilities.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/generatename.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/guest.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/logger.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/network.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/nodedev.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/osdict.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/pollhelpers.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/progress.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/snapshot.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/storage.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/support.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/uri.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/virtclone.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/virtinstall.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/virtxml.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/xmlapi.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/xmlbuilder.cpython-310.pyc
/usr/share/virt-manager/virtinst/__pycache__/xmlutil.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/audio.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/char.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/controller.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/device.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/disk.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/filesystem.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/graphics.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/hostdev.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/input.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/interface.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/iommu.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/memballoon.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/memory.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/panic.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/redirdev.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/rng.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/shmem.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/smartcard.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/sound.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/tpm.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/video.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/vsock.cpython-310.pyc
/usr/share/virt-manager/virtinst/devices/__pycache__/watchdog.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/blkiotune.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/clock.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/cpu.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/cputune.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/features.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/idmap.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/keywrap.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/launch_security.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/memorybacking.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/memtune.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/metadata.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/numatune.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/os.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/pm.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/resource.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/seclabel.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/sysinfo.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/vcpus.cpython-310.pyc
/usr/share/virt-manager/virtinst/domain/__pycache__/xmlnsqemu.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/__init__.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/cloudinit.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/installer.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/installerinject.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/installertreemedia.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/unattended.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/urldetect.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/urlfetcher.cpython-310.pyc
/usr/share/virt-manager/virtinst/install/__pycache__/volumeupload.cpython-310.pyc


Hence blocking the Python 3.11 tracker.

Comment 6 Miro Hrončok 2022-08-02 14:29:12 UTC
Trying this:

diff --git a/setup.py b/setup.py
index e95acd3..0ce15f6 100755
--- a/setup.py
+++ b/setup.py
@@ -530,6 +530,9 @@ setuptools.setup(
             glob.glob("virtinst/install/*.py")),
     ],
 
+    # stop setuptools 61+ thinking we want to include everything automatically
+    py_modules=[],
+
     cmdclass={
         'build': my_build,
         'build_i18n': my_build_i18n,

Comment 7 Miro Hrončok 2022-08-02 14:37:03 UTC
That works.

Comment 9 Fedora Update System 2022-08-03 09:46:09 UTC
FEDORA-2022-37a5058318 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-37a5058318

Comment 10 Fedora Update System 2022-08-03 09:46:58 UTC
FEDORA-2022-37a5058318 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.