From 16e8625fde773d00732134ea985a42156bd8619b Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Mon, 20 May 2024 20:29:12 +0200 Subject: [PATCH] Limit runtime dependency to `libarrow>=16.0.0,<16.1.0a0` (#15782) Fix `libarrow` runtime dependency which is currently broken due to the release of `libarrow=16.1.0`: ```python $ python -c "import cudf" Traceback (most recent call last): File "", line 1, in File "/opt/conda/envs/rapids/lib/python3.10/site-packages/cudf/__init__.py", line 9, in _setup_numba() File "/opt/conda/envs/rapids/lib/python3.10/site-packages/cudf/utils/_numba.py", line 124, in _setup_numba _get_cc_60_ptx_file() File "/opt/conda/envs/rapids/lib/python3.10/site-packages/cudf/utils/_numba.py", line 16, in _get_cc_60_ptx_file from cudf._lib import strings_udf File "/opt/conda/envs/rapids/lib/python3.10/site-packages/cudf/_lib/__init__.py", line 4, in from . import ( ImportError: libarrow.so.1600: cannot open shared object file: No such file or directory ``` --------- Co-authored-by: Bradley Dice Co-authored-by: James Lamb --- conda/recipes/libcudf/meta.yaml | 9 +++++++++ dependencies.yaml | 8 ++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/conda/recipes/libcudf/meta.yaml b/conda/recipes/libcudf/meta.yaml index 76115362b6c..ad2e840c71d 100644 --- a/conda/recipes/libcudf/meta.yaml +++ b/conda/recipes/libcudf/meta.yaml @@ -86,6 +86,9 @@ outputs: {% else %} - {{ compiler('cuda') }} {% endif %} + # TODO: start taking libarrow's run exports again wwhen they're correct for 16.0 + # ref: https://github.com/conda-forge/arrow-cpp-feedstock/issues/1418 + - libarrow requirements: build: - cmake {{ cmake_version }} @@ -105,6 +108,12 @@ outputs: - librmm ={{ minor_version }} - libkvikio ={{ minor_version }} - dlpack {{ dlpack_version }} + # TODO: start taking libarrow's run exports again wwhen they're correct for 16.0 + # ref: https://github.com/conda-forge/arrow-cpp-feedstock/issues/1418 + - libarrow>=16.0.0,<16.1.0a0 + - libarrow-acero>=16.0.0,<16.1.0a0 + - libarrow-dataset>=16.0.0,<16.1.0a0 + - libparquet>=16.0.0,<16.1.0a0 test: commands: - test -f $PREFIX/lib/libcudf.so diff --git a/dependencies.yaml b/dependencies.yaml index 4f8f3c16ea1..f20c1591e73 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -341,10 +341,10 @@ dependencies: - output_types: conda packages: # Allow runtime version to float up to minor version - - libarrow-acero>=16.0.0,<17.0.0a0 - - libarrow-dataset>=16.0.0,<17.0.0a0 - - libarrow>=16.0.0,<17.0.0a0 - - libparquet>=16.0.0,<17.0.0a0 + - libarrow-acero>=16.0.0,<16.1.0a0 + - libarrow-dataset>=16.0.0,<16.1.0a0 + - libarrow>=16.0.0,<16.1.0a0 + - libparquet>=16.0.0,<16.1.0a0 pyarrow_run: common: - output_types: [conda, requirements, pyproject]