You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an error while trying to build my Sphinx documentation using sphinx-build -b html . _build. The build process fails with an ExtensionError, stating that the nbsphinx_link module is missing.
File "C:\Users\HP\AppData\Local\Programs\Python\Python313\Lib\site-packages\sphinx\registry.py", line 544, in load_extension
raise ExtensionError(
__('Could not import extension %s') % extname, err
) from err
sphinx.errors.ExtensionError: Could not import extension nbsphinx_link (exception: No module named 'nbsphinx_link')
The full traceback has been saved in:
C:\Users\HP\AppData\Local\Temp\sphinx-err-g4t7ub7z.log
How to Reproduce
Run the command :
sphinx-build -b html . _build
2.The build process fails with the above error.
As far as I understood the issue description, the problem is that it's not clear from the error message that the nbsphinx-link package has to be installed.
This happens without nbsphinx-link being installed, therefore it cannot be an issue with that project, right?
(except for documentation, see below)
It sounds like a Sphinx issue to me, but I don't know if there is a feasible course of action for this ...
I think the problem is that the module name and the PyPI package name are sometimes (often?) different, and Sphinx knows only the former and can therefore give no hints on how to install the latter.
(Part of) the problem might also be a documentation problem, since the README in https://github.com/vidartf/nbsphinx-link/ states "Install the package", but it doesn't state how to do that (nor how the PyPI package is actually named, thought the first guess would likely be right).
Describe the bug
I encountered an error while trying to build my Sphinx documentation using sphinx-build -b html . _build. The build process fails with an ExtensionError, stating that the nbsphinx_link module is missing.
Running Sphinx v8.2.3
loading translations [en]... done
Extension error!
Versions
Traceback
The full traceback has been saved in:
C:\Users\HP\AppData\Local\Temp\sphinx-err-g4t7ub7z.log
How to Reproduce
Environment Information
Sphinx extensions
Additional context
Possible Fix / Workaround
Manually installing the missing extension (nbsphinx_link) using:
resolved the issue.
Could this missing dependency be added to the documentation or a clearer error message be provided? Let me know if any additional details are needed.
Thanks!
The text was updated successfully, but these errors were encountered: