Bug 2207628

Summary: python-pandas: FTBFS in Fedora Rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-pandasAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: code, epel-packagers-sig, jonathan, mail, neuro-sig, orion, python-packagers-sig, sergio.pasra, tomspur, wfp5p
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-pandas
Whiteboard:
Fixed In Version: python-pandas-1.5.3-4.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-17 15:39:05 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: 2135404, 2168842    

Description Tomáš Hrnčiar 2023-05-16 11:37:44 UTC
Description of problem:
Package python-pandas fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.5.3-3.fc39

Steps to Reproduce:
koji build --scratch f39 python-pandas-1.5.3-3.fc39.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-pandas

Comment 1 Ben Beasley 2023-05-16 12:46:41 UTC
=================================== FAILURES ===================================
__________________________ test_arrow_array[pyarrow] ___________________________
[gw0] linux -- Python 3.11.3 /usr/bin/python3
dtype = string[pyarrow]
    @td.skip_if_no("pyarrow")
    def test_arrow_array(dtype):
        # protocol added in 0.15.0
        import pyarrow as pa
    
        data = pd.array(["a", "b", "c"], dtype=dtype)
        arr = pa.array(data)
        expected = pa.array(list(data), type=pa.string(), from_pandas=True)
        if dtype.storage == "pyarrow":
            expected = pa.chunked_array(expected)
    
>       assert arr.equals(expected)
E       TypeError: Argument 'other' has incorrect type (expected pyarrow.lib.Array, got pyarrow.lib.ChunkedArray)
../../../BUILDROOT/python-pandas-1.5.3-3.fc39.x86_64/usr/lib64/python3.11/site-packages/pandas/tests/arrays/string_/test_string.py:449: TypeError

Comment 2 Ben Beasley 2023-05-16 13:14:34 UTC
I am testing a backported patch for this. PR to follow if all goes well.

Comment 4 Fedora Update System 2023-05-17 15:37:39 UTC
FEDORA-2023-976656be6f has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-976656be6f

Comment 5 Fedora Update System 2023-05-17 15:39:05 UTC
FEDORA-2023-976656be6f has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.