kaggle tools: dataset_status 403, missing six dep, mount-path surprises #6

Open
opened 2026-11-15 00:58:21 +00:00 by dsh · 0 comments
Owner

First real end-to-end use of the Kaggle tools (a 2xT4 kernel + private dataset) surfaced three rough edges. Everything is solved/workable via the Kaggle CLI, but the tools should handle these.

1. dataset_status returns 403 for a private dataset we own

  • kaggle_dataset_create succeeded (pavelburda/hijack-m2-heads-data).
  • Immediately after, kaggle_dataset_status -> forbidden / 403 on https://api.kaggle.com/v1/datasets.DatasetApiService/GetDatasetStatus.
  • The same moment, kaggle datasets status pavelburda/hijack-m2-heads-data printed ready.
  • So the tool's endpoint/params differ from the CLI path; likely the API method or version is wrong for private datasets.

2. uv tool install kaggle leaves a broken CLI

  • After installing the CLI (uv tool), kaggle failed on import:
    ModuleNotFoundError: No module named 'six'.
  • Reinstall with --with six fixes it. The plugin/quick-start should pin/install the CLI's transitive deps (or document the extra).

3. Mount-path and dataset-layout surprises

  • A dataset containing hijack-src.tar.gz was auto-extracted on Kaggle (hijack-src/...), and smoke-10m.tar.gz became smoke-10m/....
  • Newer kernels mount at /kaggle/input/datasets/<owner>/<slug>/... (only datasets is in /kaggle/input), not /kaggle/input/<slug>.
  • A kernel hardcoding the documented /kaggle/input/<slug> path failed twice (no hijack-src in dataset); recursive glob discovery fixed it.
  • Suggest: an input-path helper ("resolve attached dataset path") and a docs note about auto-extraction.

Repro

Kernel: pavelburda/hijack-m2-heads (versions 1-4), dataset pavelburda/hijack-m2-heads-data, Kaggle CLI installed via uv tool install kaggle; final v4 completed successfully (542 tok/s, 2xT4).

Happy to test fixes; this was otherwise a very smooth first run (dataset create, kernel push/status/logs/output all worked).

First real end-to-end use of the Kaggle tools (a 2xT4 kernel + private dataset) surfaced three rough edges. Everything is **solved/workable** via the Kaggle CLI, but the tools should handle these. ### 1. `dataset_status` returns 403 for a private dataset we own - `kaggle_dataset_create` succeeded (`pavelburda/hijack-m2-heads-data`). - Immediately after, `kaggle_dataset_status` -> `forbidden` / 403 on `https://api.kaggle.com/v1/datasets.DatasetApiService/GetDatasetStatus`. - The same moment, `kaggle datasets status pavelburda/hijack-m2-heads-data` printed `ready`. - So the tool's endpoint/params differ from the CLI path; likely the API method or version is wrong for private datasets. ### 2. `uv tool install kaggle` leaves a broken CLI - After installing the CLI (uv tool), `kaggle` failed on import: `ModuleNotFoundError: No module named 'six'`. - Reinstall with `--with six` fixes it. The plugin/quick-start should pin/install the CLI's transitive deps (or document the extra). ### 3. Mount-path and dataset-layout surprises - A dataset containing `hijack-src.tar.gz` was **auto-extracted** on Kaggle (`hijack-src/...`), and `smoke-10m.tar.gz` became `smoke-10m/...`. - Newer kernels mount at `/kaggle/input/datasets/<owner>/<slug>/...` (only `datasets` is in `/kaggle/input`), not `/kaggle/input/<slug>`. - A kernel hardcoding the documented `/kaggle/input/<slug>` path failed twice (`no hijack-src in dataset`); recursive glob discovery fixed it. - Suggest: an input-path helper ("resolve attached dataset path") and a docs note about auto-extraction. ### Repro Kernel: `pavelburda/hijack-m2-heads` (versions 1-4), dataset `pavelburda/hijack-m2-heads-data`, Kaggle CLI installed via `uv tool install kaggle`; final v4 completed successfully (542 tok/s, 2xT4). Happy to test fixes; this was otherwise a very smooth first run (dataset create, kernel push/status/logs/output all worked).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
dsh-plugins/dsh-kaggle#6
No description provided.