Bug 2458729

Summary: python-partd fails to build with Pandas 3: NotImplementedError: (string[python], array(['a', 'b', 'c'], dtype=object)) in 5 tests
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-partdAssignee: Miro HronĨok <mhroncok>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: epel-packagers-sig, fti-bugs, jonathan, ksurma, mhroncok, python-packagers-sig, quantum.analyst
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-partd-1.4.2-12.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-08 22:38:36 UTC 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: 2412434, 2433833, 2433836, 2485681, 2485795, 2485842, 2485844, 2485925, 2485952, 2485982, 2485984    

Description Karolina Surma 2026-04-15 17:16:45 UTC
python-partd fails to build with Python 3.15.0a8.

____________ test_index_non_numeric_extension_types[string[python]] ____________

dtype = 'string[python]'

    @pytest.mark.parametrize(
        "dtype",
        [
            "string[python]",
            pytest.param(
                "string[pyarrow]",
                marks=pytest.mark.skipif(pa is None, reason="Requires pyarrow"),
            ),
        ],
    )
    def test_index_non_numeric_extension_types(dtype):
        pytest.importorskip("pandas", minversion="1.4.0")
        df = pd.DataFrame({"x": [1, 2, 3]}, index=["a", "b", "c"])
        df.index = df.index.astype(dtype)
>       df2 = deserialize(serialize(df))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^

partd/tests/test_pandas.py:147: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../BUILDROOT/usr/lib/python3.15/site-packages/partd/pandas.py:199: in deserialize
    index_from_header_bytes(headers[1], bytes[1])]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../BUILDROOT/usr/lib/python3.15/site-packages/partd/pandas.py:123: in index_from_header_bytes
    return pickle.loads(bytes)
           ^^^^^^^^^^^^^^^^^^^
pandas/_libs/arrays.pyx:81: in pandas._libs.arrays.NDArrayBacked.__setstate__
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   NotImplementedError: (string[python], array(['a', 'b', 'c'], dtype=object))

pandas/_libs/arrays.pyx:99: NotImplementedError
=========================== short test summary info ============================
FAILED partd/tests/test_pandas.py::test_serialize_categoricals[False] - NotIm...
FAILED partd/tests/test_pandas.py::test_serialize_categoricals[True] - NotImp...
FAILED partd/tests/test_pandas.py::test_serialize[base0] - NotImplementedErro...
FAILED partd/tests/test_pandas.py::test_serialize[base1] - NotImplementedErro...
FAILED partd/tests/test_pandas.py::test_index_non_numeric_extension_types[string[python]]


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10318774-python-partd/

For all our attempts to build python-partd with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-partd/

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

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Karolina Surma 2026-06-06 18:24:01 UTC
*** Bug 2485919 has been marked as a duplicate of this bug. ***