I am setting up a development environment. I am able to run octoprint serve
, but cannot build any documentation. When running sphinx-build -M html . _build
, I immediately run into an Extension error.
Running Sphinx v8.2.3
loading translations [en]... done
Extension error!
I get the following traceback:
Versions
========
* Platform: linux; (Linux-6.8.0-62-generic-x86_64-with-glibc2.39)
* Python version: 3.12.3 (CPython)
* Sphinx version: 8.2.3
* Docutils version: 0.21.2
* Jinja2 version: 3.1.6
* Pygments version: 2.19.1
Last Messages
=============
None.
Loaded Extensions
=================
None.
Traceback
=========
File "/home/will/Desktop/repos/OctoPrint/venv/lib/python3.12/site-packages/sphinx/registry.py", line 544, in load_extension
raise ExtensionError(
sphinx.errors.ExtensionError: Could not import extension onlineinclude (exception: cannot import name 'parselinenos' from 'sphinx.directives.code' (/home/will/Desktop/repos/OctoPrint/venv/lib/python3.12/site-packages/sphinx/directives/code.py))
I'm not sure how to solve this problem; I tried searching for how to install onlineinclude
and parselineos
, but it seems like those aren't installable packages. I tried commenting out that line in docs/conf.py
, which still raised errors after only a few HTML pages of documentation had been built. Considering this is a current version of the repo, I'm not sure if there is a compatibility mismatch or errors on my part.