Bug 2058870 - Build fails due to TestDataFrame.test_to_wkb on s390x (endianness issue)
Summary: Build fails due to TestDataFrame.test_to_wkb on s390x (endianness issue)
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-geopandas
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-26 15:14 UTC by Ben Beasley
Modified: 2023-12-05 21:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-05 21:04:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github geopandas geopandas issues 2155 0 None open BUG: test_to_wkb fails on big-endian systems 2022-02-26 15:14:04 UTC

Description Ben Beasley 2022-02-26 15:14:04 UTC
Description of problem:

The TestDataFrame.test_to_wkb suffers an unexpected failure on s390x.

Version-Release number of selected component (if applicable): 0.10.2-2.fc36


How reproducible:


Steps to Reproduce:
1. fedpkg co python-geopandas
2. cd python-geopandas
3. fedpkg --scratch-build --arches s390x

Actual results:

Build fails on s390x.

Expected results:

Build succeeds on s390x.

Additional info:

=================================== FAILURES ===================================
__________________________ TestDataFrame.test_to_wkb ___________________________
self = <geopandas.tests.test_geodataframe.TestDataFrame object at 0x3ff6943bc10>
    def test_to_wkb(self):
        wkbs0 = [
            (
                b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00"
                b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
            ),  # POINT (0 0)
            (
                b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00"
                b"\x00\xf0?\x00\x00\x00\x00\x00\x00\xf0?"
            ),  # POINT (1 1)
        ]
        wkbs1 = [
            (
                b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00"
                b"\x00\x00@\x00\x00\x00\x00\x00\x00\x00@"
            ),  # POINT (2 2)
            (
                b"\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00"
                b"\x00\x08@\x00\x00\x00\x00\x00\x00\x08@"
            ),  # POINT (3 3)
        ]
        gs0 = GeoSeries.from_wkb(wkbs0)
        gs1 = GeoSeries.from_wkb(wkbs1)
        gdf = GeoDataFrame({"geom_col0": gs0, "geom_col1": gs1})
    
        expected_df = pd.DataFrame({"geom_col0": wkbs0, "geom_col1": wkbs1})
>       assert_frame_equal(expected_df, gdf.to_wkb())
geopandas/tests/test_geodataframe.py:797: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/_libs/testing.pyx:53: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
>   ???
E   AssertionError: DataFrame.iloc[:, 0] (column name="geom_col0") are different
E   
E   DataFrame.iloc[:, 0] (column name="geom_col0") values are different (100.0 %)
E   [index]: [0, 1]
E   [left]:  [b'\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', b'\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0?\x00\x00\x00\x00\x00\x00\xf0?']
E   [right]: [b'\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', b'\x00\x00\x00\x00\x01?\xf0\x00\x00\x00\x00\x00\x00?\xf0\x00\x00\x00\x00\x00\x00']
pandas/_libs/testing.pyx:168: AssertionError


There is an upstream bug: https://github.com/geopandas/geopandas/issues/2155

Comment 1 Ben Cotton 2022-08-09 13:13:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 2 Aoife Moloney 2023-11-23 00:09:27 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2023-12-05 21:04:48 UTC
Fedora Linux 37 entered end-of-life (EOL) status on None.

Fedora Linux 37 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Elliott Sales de Andrade 2023-12-05 21:09:43 UTC
Still a problem, unfortunately.


Note You need to log in before you can comment on or make changes to this bug.