Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937754 - dev-python/pandas: Add ~ppc64 keyword
Summary: dev-python/pandas: Add ~ppc64 keyword
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-11 09:45 UTC by Chris Kerr
Modified: 2024-12-12 18:57 UTC (History)
2 users (show)

See Also:
Package list:
dev-python/pandas ppc64 dev-libs/apache-arrow ^ dev-python/pyarrow ^ dev-python/statsmodels ^ dev-python/xarray ^ dev-python/cftime ^ dev-python/netcdf4 ^
Runtime testing required: ---
nattka: sanity-check+


Attachments
xarray build and test with netcdf4 roundtrip failures (dev-python:xarray-2024.9.0:20241020-112234.log.gz,305.18 KB, application/gzip)
2024-10-20 11:39 UTC, Chris Kerr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kerr 2024-08-11 09:45:58 UTC
Pandas and dependencies used to be keyworded for ppc64 but is no longer. 

I built dev-python/pandas-2.2.2-r1 and all the dependencies listed by nattka on power9 with FEATURES=test and they all work. I built pandas with "full-support" and "debug" USE flags to ensure that all the optional features are tested and that assertions are enabled.
Comment 1 Chris Kerr 2024-08-11 09:48:16 UTC
N.B. I had problems with dev-python/netcdf4 giving the below error, which turns out to be triggered by compiling with debug info (`-g` in CFLAGS). Removing the `-g` fixed the problem.

ImportError: /var/tmp/portage/dev-python/netcdf4-1.7.1-r1/work/netcdf4-1.7.1-python3_12/install/usr/lib/python3.12/site-packages/netCDF4/_netCDF4.cpython-312-powerpc64le-linux-gnu.so: undefined symbol: pfnc_inq_vardimid
Comment 2 Chris Kerr 2024-08-11 09:51:14 UTC
Helpful but not strictly required: #937755 for a properly open source implementation of szip.
Comment 3 Chris Kerr 2024-08-11 10:14:40 UTC
N.B. This is all with numpy 1.26.4 because numpy 2.0.0 fails to build on power9 - see #937757
Comment 4 Chris Kerr 2024-10-20 11:39:34 UTC
Created attachment 906407 [details]
xarray build and test with netcdf4 roundtrip failures

Now that I have found a workaround for #937757 I rebuilt these packages with against numpy 2.0.0

All the tests pass in all packages if I keep dev-python/xarray to version 2024.6.0-r1 which built successfully with numpy v1.

However the latest dev-python/xarray-2024.9.0 fails two tests in the NetCDF4 backend.
Comment 5 Chris Kerr 2024-12-12 18:57:35 UTC
dev-python/xarray-2024.11.0 also fails src_test with the same two errors in NetCDF4

FAILED xarray/tests/test_backends.py::TestNetCDF4Data::test_roundtrip_mask_and_scale[dtype0-create_unsigned_false_masked_scaled_data-create_encoded_unsigned_false_masked_scaled_data] - AssertionError: Left and right Dataset objects are not close
Differing data variables:
L   x        (t) float64 32B -1.0 10.1 22.7 nan
R   x        (t) float64 32B 10.0 10.1 22.7 nan
FAILED xarray/tests/test_backends.py::TestNetCDF4Data::test_roundtrip_mask_and_scale[dtype1-create_unsigned_false_masked_scaled_data-create_encoded_unsigned_false_masked_scaled_data] - AssertionError: Left and right Dataset objects are not close
Differing data variables:
L   x        (t) float32 16B -1.0 10.1 22.7 nan
R   x        (t) float32 16B 10.0 10.1 22.7 nan