Skip to content

Commit 738fade

Browse files
authored
Fix kagglehub (#1471)
UV requires a separate flag for allowing prerelease packages to be installed. kagglehub install fails due to this, since sigstore (a dependency) needs a prerelease package. let's install it separate to allow prerelease installs. https://b.corp.google.com/issues/394382016
1 parent 6050d0d commit 738fade

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile.tmpl

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ ENV PATH="~/.local/bin:${PATH}"
2828
# b/183041606#comment5: the Kaggle data proxy doesn't support these APIs. If the library is missing, it falls back to using a regular BigQuery query to fetch data.
2929
RUN uv pip uninstall --system google-cloud-bigquery-storage
3030

31+
# b/394382016: sigstore (dependency of kagglehub) requires a prerelease packages, installing separate.
32+
RUN uv pip install --system --force-reinstall --prerelease=allow kagglehub[pandas-datasets,hf-datasets]>=0.3.7
33+
3134
# uv cannot install this in requirements.txt without --no-build-isolation
3235
# to avoid affecting the larger build, we'll post-install it.
3336
RUN uv pip install --no-build-isolation --system "git+https://github.com/Kaggle/learntools"

kaggle_requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jupyter_server==2.12.5
7070
jupyterlab
7171
jupyterlab-lsp
7272
kaggle-environments
73-
kagglehub[pandas-datasets,hf-datasets]>=0.3.6
7473
# Keras 3.6 broke test_keras.py > test_train > keras.datasets.mnist.load_data():
7574
# See https://github.com/keras-team/keras/commit/dcefb139863505d166dd1325066f329b3033d45a
7675
keras<3.6

0 commit comments

Comments
 (0)