Bug 2325222

Summary: python-h5netcdf fails to build with Python 3.14: test_no_circular_references: AssertionError
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-h5netcdfAssignee: Sergio Pascual <sergio.pasra>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: fti-bugs, gui1ty, ksurma, mhroncok, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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: 2322407, 2339432, 2339435, 2371797, 2372086, 2372200    

Description Karolina Surma 2024-11-11 15:36:00 UTC
python-h5netcdf fails to build with Python 3.14.0a1.

_________________________ test_no_circular_references __________________________

tmp_local_netcdf = '/tmp/pytest-of-mockbuild/pytest-0/test_no_circular_references0/testfile.nc'

    def test_no_circular_references(tmp_local_netcdf):
        # https://github.com/h5py/h5py/issues/2019
        with h5netcdf.File(tmp_local_netcdf, "w") as ds:
            ds.dimensions["x"] = 2
            ds.dimensions["y"] = 2
    
        gc.collect()
        with h5netcdf.File(tmp_local_netcdf, "r") as ds:
            refs = gc.get_referrers(ds)
            for ref in refs:
                print(ref)
>           assert len(refs) == 1
E           assert 0 == 1
E            +  where 0 = len([])

h5netcdf/tests/test_h5netcdf.py:1512: AssertionError


https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08207277-python-h5netcdf/

For all our attempts to build python-h5netcdf with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-h5netcdf/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Sandro 2024-12-22 19:15:17 UTC
Reported upstream

Comment 2 Aoife Moloney 2025-02-26 13:15:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 3 Karolina Surma 2025-06-11 15:59:35 UTC
*** Bug 2371934 has been marked as a duplicate of this bug. ***