[BUG] Numpy proxy array fails with AttributeError: 'ndarray' object has no attribute '_fsproxy_wrapped'
#17930
Labels
AttributeError: 'ndarray' object has no attribute '_fsproxy_wrapped'
#17930
Describe the bug
Apart of #17490. Several of the third-party integration tests fail with
AttributeError: 'ndarray' object has no attribute '_fsproxy_wrapped'
. I've checked thatndarray
in this case is a proxy array (iecudf.pandas._wrappers.numpy.ndarray
) not a true numpy array (ie.np.ndarray
). So this makes me think this is a real numpy proxying bug because proxy arrays get a_fsproxy_wrapped
attribute immediately after instance creation in__array_finalize__
.The failing tests occur during the comparison step in the third-party integration tests CI job. I've checked that the "gold" run (ie. no cudf.pandas) and the "cudf" (ie. with cudf.pandas) pass. To illustrate what is happening, we can use one of the failing numpy integration tests.
During the "gold" run the result from
test_numpy_fft
is a realnp.ndarray
. And during the "cudf" run, the result is a proxy arraycudf.pandas._wrappers.numpy.ndarray
. The results are stored in a binary file for use during the "compare" run. It's during this that the test fails. The assertion function used to compare the "gold" and "cudf" runs isnp.testing.assert_allclose
. So effectively,produces the test failure we see
Steps/Code to reproduce bug
I have not come up with a minimal reproducer yet. But we can reproduce the CI failures locally in a conda environment
The text was updated successfully, but these errors were encountered: