Bug 2341338

Summary: python-matplotlib: FTBFS in Fedora rawhide/f42
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: python-matplotlibAssignee: Elliott Sales de Andrade <quantum.analyst>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, epel-packagers-sig, gwync, paulo.cesar.pereira.de.andrade, python-packagers-sig, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-matplotlib-3.10.0-3.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-25 03:38:20 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: 2300528    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2025-01-22 21:56:09 UTC
python-matplotlib failed to build from source in Fedora rawhide/f42

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix python-matplotlib 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-matplotlib will be orphaned. Before branching of Fedora 43,
python-matplotlib 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 2025-01-22 21:56:12 UTC
Created attachment 2072534 [details]
build.log

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

Comment 2 Fedora Release Engineering 2025-01-22 21:56:14 UTC
Created attachment 2072535 [details]
root.log

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

Comment 3 Fedora Release Engineering 2025-01-22 21:56:15 UTC
Created attachment 2072536 [details]
state.log

Comment 4 Ben Beasley 2025-01-22 22:39:01 UTC
=================================== FAILURES ===================================
___________________________ test_save_figure_return ____________________________
[gw3] linux -- Python 3.13.1 /usr/bin/python3
    @pytest.mark.backend('QtAgg', skip_on_importerror=True)
    def test_save_figure_return():
        fig, ax = plt.subplots()
        ax.imshow([[1]])
        prop = "matplotlib.backends.qt_compat.QtWidgets.QFileDialog.getSaveFileName"
        with mock.patch(prop, return_value=("foobar.png", None)):
            fname = fig.canvas.manager.toolbar.save_figure()
>           os.remove("foobar.png")
E           FileNotFoundError: [Errno 2] No such file or directory: 'foobar.png'
../BUILDROOT/usr/lib64/python3.13/site-packages/matplotlib/tests/test_backend_qt.py:236: FileNotFoundError

Comment 5 Elliott Sales de Andrade 2025-01-23 01:31:45 UTC
Only on x86_64 though; it's all tolerance issues on other arches (and this one didn't fail.)

Comment 6 Fedora Update System 2025-01-25 02:41:01 UTC
FEDORA-2025-7473b5c3bf (python-matplotlib-3.10.0-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7473b5c3bf

Comment 7 Fedora Update System 2025-01-25 03:38:20 UTC
FEDORA-2025-7473b5c3bf (python-matplotlib-3.10.0-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.