Skip to content

fix(docs): Fix glossary FIXME tags #31674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bl3ck
Copy link
Contributor

@bl3ck bl3ck commented Jun 28, 2025

Reference Issues/PRs

Fixes #31628

What does this implement/fix? Explain your changes.

Any other comments?

While working on #31628, I encountered a ModuleNotFoundError due to a misnamed Sphinx extension (sphinx-prompt instead of sphinx_prompt). This PR also fixes that to ensure local doc builds (make) work correctly.

Setup

Python 3.13.3

   machine: macOS-15.5-arm64-arm-64bit-Mach-O

Python dependencies:
      sklearn: 1.8.dev0
          pip: 25.0.1
   setuptools: None
        numpy: 2.3.1
        scipy: 1.16.0
       Cython: 3.1.2
       pandas: 2.3.0
   matplotlib: 3.10.3
       joblib: 1.5.1
threadpoolctl: 3.6.0

Built with OpenMP: False

…ions

Using `sphinx-prompt` in the `extensions` list causes a ModuleNotFoundError
when building the documentation via `make` or similar Sphinx commands:

    ModuleNotFoundError: No module named `sphinx-prompt`

This happens because the correct Python module name is `sphinx_prompt`
(with an underscore), not a hyphen. Sphinx uses importlib to load extensions,
so the module name must be valid Python syntax.

This fixes the issue for contributors using `make` to build the docs locally.
Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: e571a6b. Link to the linter CI: here

@jeremiedbb
Copy link
Member

Thanks for the PR @bl3ck. I don't think that the package name is wrong. It doesn't triggers any errors locally or in our CI jobs. On the opposite, the new name in this PRs makes the CI fail: ModuleNotFoundError: No module named 'sphinx_prompt'. Given that and the fact that the issue this PR was originally aiming to solve has been fixed by another PR, I'm closing this one.
Feel free to reopen if the problem persists.

@jeremiedbb jeremiedbb closed this Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Glossary contains several FIXME tags
2 participants