FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: pin fury<2 and fastcore<2 to unbreak dipy and fastai tests (#1556) · Kaggle/docker-python@78aaa43 · GitHub

Commit 78aaa43

Browse files
andauthored
fix: pin fury<2 and fastcore<2 to unbreak dipy and fastai tests (#1556)
BUG=[b/545164527](http://b/545164527) The scheduled build re-resolves kaggle_requirements.txt against live PyPI, so a rebuild of an unchanged commit picks up new upstream releases. Two major versions landed since the last green build and broke all four test stages: - fury 2.0.0 swapped the VTK backend for pygfx/wgpu, dropping the APIs dipy.viz needs. test_dipy fails at import. dipy/dipy#3978 - fastcore v2 removed L.starmap, called by fastai's set_hypers. test_fastai.test_tabular fails with AttributeError. fastai/fastai#4154 Both consumers declare unbounded requirements (fury>=0.12.0, fastcore>=1.14.6), so nothing stopped the resolver from crossing the major version boundary. Neither upstream has a released fix, so pin both with TODOs. fastcore is capped directly rather than via a direct dep: five packages pull it uncapped, and execnb>=2.2.5 alone forces v2, so pinning nbdev does not help. Even nbdev<3 still resolves fastcore 2.2.12. Verified by building the CPU image both ways. Before: fury 2.0.0 / fastcore 2.2.12, both tests fail with the CI tracebacks. After: fury 0.12.0 / fastcore 1.14.5 / nbdev 3.1.0, both tests pass and nbdev, execnb, ghapi and learntools still import. See b/545164527#comment3 for successful build Co-authored-by: Claude <noreply@anthropic.com>
1 parent fc61d5c commit 78aaa43

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎kaggle_requirements.txt‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,22 @@ dipy
2626
docker
2727
easyocr
2828
emoji
29+
# TODO: b/545164527 - unpin once fastai supports fastcore v2.
30+
# fastcore v2 removed L.starmap, breaking fastai's Optimizer.set_hypers:
31+
# https://github.com/fastai/fastai/issues/4154
32+
# Pinned here rather than on a direct dep because nbdev, execnb, ghapi, fastgit
33+
# and fastspec all pull fastcore uncapped; only constraining fastcore itself
34+
# makes the resolver backtrack all of them.
35+
fastcore<2
2936
fasttext
3037
featuretools
3138
fiona
3239
flax
33-
fury
40+
# TODO: b/545164527 - unpin once dipy ships its fury<2.0 cap.
41+
# fury 2.0 swapped VTK for pygfx/wgpu, breaking `from dipy.viz import window`.
42+
# dipy requires fury uncapped; fix is merged upstream but unreleased:
43+
# https://github.com/dipy/dipy/issues/3978
44+
fury<2
3445
fuzzywuzzy
3546
geojson
3647
gensim

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL