Skip to content

[ci] [docs] docs rendering failing with 'undefined label: 'metadata_routing' #5954

Closed
@jameslamb

Description

Description

The check-docs CI job is failing with this error that seems to be occurring while rendering the sphinx docs to HTML

Warning, treated as error:
/home/runner/work/LightGBM/LightGBM/python-package/lightgbm/dask.py:docstring of lightgbm.dask.DaskLGBMClassifier:1:undefined label: 'metadata_routing'

(build link)

Reproducible example

I see that in multiple CI builds here, including the latest on master (build link).

I'm able to reproduce this locally in a Python 3.10 environment on macOS, with the following:

mamba install --yes \
    breathe \
    doxygen \
    scikit-learn \
    sphinx \
    sphinx_rtd_theme \
    'scikit-learn>=1.3'

Additional Notes

When downgrading from scikit-learn 1.3.0 to 1.2.2, this error goes away and the docs render correctly. I strongly suspect that it's related to changes in the most recent version of scikit-learn.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions