Skip to content

kagglesdk 0.1.31 and 0.1.32 import a missing competitions.legacy package #57

Description

@YuanTingHsieh

Description

A fresh installation of kagglehub==1.0.2 on Python 3.11+ resolves kagglesdk==0.1.32, after which import kagglehub fails.

Reproduction

python -m venv venv
source venv/bin/activate
python -m pip install kagglehub==1.0.2 kagglesdk==0.1.32
python -c "import kagglehub"

Expected result

kagglehub imports successfully.

Actual result

ModuleNotFoundError: No module named 'kagglesdk.competitions.legacy'

kagglesdk/competitions/types/host_service.py imports:

from kagglesdk.competitions.legacy.types.legacy_competition_host_service import EvaluationMetricParameter

However, kagglesdk/competitions/legacy is absent from both the published wheel and the repository source.

Both 0.1.31 and 0.1.32 are affected. Constraining the dependency to kagglesdk<0.1.31 resolves 0.1.30 and restores the import.

Affected environments observed: Python 3.11, 3.12, 3.13, and 3.14.

Example downstream CI failure:
https://github.com/NVIDIA/NVFlare/actions/runs/28473335329

Suggested resolution

Please regenerate or publish the SDK with the referenced legacy package, or remove the stale generated import. Yanking the affected releases may also prevent fresh environments from resolving them while a corrected release is prepared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions