Bug 2434951

Summary: python-avocado: FTBFS in Fedora rawhide/f44
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: python-avocadoAssignee: Cleber Rosa <crosa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, crosa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-07 21:00:59 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: 2384424    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2026-01-29 05:32:46 UTC
python-avocado failed to build from source in Fedora rawhide/f44

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
Please fix python-avocado 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,
python-avocado will be orphaned. Before branching of Fedora 45,
python-avocado 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 2026-01-29 05:32:53 UTC
Created attachment 2126600 [details]
build.log

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

Comment 2 Fedora Release Engineering 2026-01-29 05:32:58 UTC
Created attachment 2126601 [details]
root.log

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

Comment 3 Fedora Release Engineering 2026-01-29 05:33:01 UTC
Created attachment 2126602 [details]
state.log

Comment 4 Adam Williamson 2026-04-07 20:21:35 UTC
This is ultimately because we have setuptools 80 in Fedora 44+. avocado uses pkg_resources, which setuptools is deprecating. With a sufficiently new setuptools, using pkg_resources triggers a deprecation warning:

/builddir/build/BUILD/python-avocado-112.0-build/avocado-112.0/avocado/core/__init__.py:18: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

Two of avocado's tests, test_not_found and test_empty_test_list , are broken by this, because they run an avocado command then assert the stderr output is exactly equal to an expected string. However, it actually also includes the deprecation warning, so the assertion fails.

Comment 5 Adam Williamson 2026-04-07 21:00:59 UTC
Found and backported an upstream fix for that. Build is done: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d92a583737