holoviz / datashader

Quickly and accurately render even the largest data.
http://datashader.org
BSD 3-Clause "New" or "Revised" License
3.3k stars 366 forks source link

cudf test failure in test_log_axis_line with numpy 1.23 #1131

Closed ianthomas23 closed 1 year ago

ianthomas23 commented 1 year ago

Running DATASHADER_TEST_GPU=1 pytest datashader/tests/test_dask.py::test_log_axis_line gives

datashader/tests/test_dask.py::test_log_axis_line[ddf0] FAILED           [100%]

<snip> 
../../.miniconda/envs/rapids/lib/python3.9/site-packages/cudf/core/scalar.py:156: in _preprocess_host_value
    value = to_cudf_compatible_scalar(value, dtype=dtype)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

val = NotImplemented, dtype = <class 'numpy.bool_'>

    def to_cudf_compatible_scalar(val, dtype=None):
        """
        Converts the value `val` to a numpy/Pandas scalar,
        optionally casting to `dtype`.

        If `val` is None, returns None.
        """

        if cudf._lib.scalar._is_null_host_scalar(val) or isinstance(
            val, cudf.Scalar
        ):
            return val

        if not cudf.api.types._is_scalar_or_zero_d_array(val):
>           raise ValueError(
                f"Cannot convert value of type {type(val).__name__} "
                "to cudf scalar"
            )
E           ValueError: Cannot convert value of type NotImplementedType to cudf scalar

../../.miniconda/envs/rapids/lib/python3.9/site-packages/cudf/utils/dtypes.py:247: ValueError
------------

this is with:

cuda-python               11.7.0           py39h3fd9d12_0    nvidia
cudatoolkit               11.5.1           hcf5317a_9        nvidia
cudf                      22.08.00         cuda_11_py39_gb71873c701_0    rapidsai
cupy                      10.6.0           py39hc3c280e_0    conda-forge
dask                      2022.7.1         pyhd8ed1ab_0      conda-forge
dask-core                 2022.7.1         pyhd8ed1ab_0      conda-forge
dask-cudf                 22.08.00         cuda_11_py39_gb71873c701_0    rapidsai
datashader                0.14.2.post11+gb0e120c.dirty       pypi_0      pypi
numba                     0.56.2           py39h61ddf18_0    conda-forge
numpy                     1.23.1           py39hf838250_0  
numpy-base                1.23.1           py39h1e6e340_0

This is a known problem that already has a fix (https://github.com/rapidsai/cudf/pull/11816).

I don't intend any local workaround, I am leaving it here in case any other users experience the same problem.

ianthomas23 commented 1 year ago

This fixed in release v22.10.01 of cudf on 3rd November, so closing.