sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
523 stars 75 forks source link

Could not import extension sphinxcontrib.drawio #161

Closed erichstuder closed 1 month ago

erichstuder commented 1 month ago

I setup sphinx-autobuild. It works fine with sphinx and the plantuml extension. It updates as soon as I save. Awesome tool!!

But as soon as I add the extension sphinxcontrib.drawio to conf.py I get the following error:

Extension error: Could not import extension sphinxcontrib.drawio (exception: No module named 'sphinxcontrib') \ Command exited with exit code: 2 \ The server will continue serving the build folder, but the contents being served are no longer in sync with the documentation sources. \ Please fix the cause of the error above or press Ctrl+C to stop the server. \ [I 240506 15:52:16 server:335] Serving on http://0.0.0.0:8000

The normal build with make html works fine though.

Is sphinx-autobuild not working with sphinxcontrib.drawio? Could I have done something wrong even if the normal build works fine?

Let me know if you need more information. My project with the relevant commit is under 433MHz_to_MQTT/doc

erichstuder commented 1 month ago

I found it. The reason is that the sphinxdoc/sphinx docker image has two python versions installed. This caused the confusion.