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
The container executes the following command at startup:
sphinx-autobuild -b html --host 0.0.0.0 --port 9000 --watch /app -c . . ./_build/html
It fails with "Errno 2" because the directory '_build' doesn't exist.
The container stops, docs are not generated.
According to the Sphinx documentation, "help" is NOT a valid builder. My guess is that the author's intention was to use "html" and a script or autocorrect program modified that part of the Makefile/make.bat
What happened?
The container executes the following command at startup:
sphinx-autobuild -b html --host 0.0.0.0 --port 9000 --watch /app -c . . ./_build/html
It fails with "Errno 2" because the directory '_build' doesn't exist.
The container stops, docs are not generated.
What should've happened instead?
Container should run and docs should be accessible at http://localhost:9000/
Additional details
Logs from the container:
2024-09-05 08:13:45 sphinx-autobuild -b html --host 0.0.0.0 --port 9000 --watch /app -c . . ./_build/html
2024-09-05 08:13:46 Traceback (most recent call last):
2024-09-05 08:13:46 File "/usr/local/bin/sphinx-autobuild", line 8, in
2024-09-05 08:13:46 sys.exit(main())
2024-09-05 08:13:46 ^^^^^^
2024-09-05 08:13:46 File "/usr/local/lib/python3.12/site-packages/sphinx_autobuild/main.py", line 34, in main
2024-09-05 08:13:46 args, build_args = _parse_args(list(argv))
2024-09-05 08:13:46 ^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05 08:13:46 File "/usr/local/lib/python3.12/site-packages/sphinx_autobuild/main.py", line 101, in _parse_args
2024-09-05 08:13:46 args.outdir = Path(sphinx_args.outputdir).resolve(strict=True)
2024-09-05 08:13:46 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05 08:13:46 File "/usr/local/lib/python3.12/pathlib.py", line 1240, in resolve
2024-09-05 08:13:46 s = self._flavour.realpath(self, strict=strict)
2024-09-05 08:13:46 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-05 08:13:46 File "", line 427, in realpath
2024-09-05 08:13:46 File "", line 462, in _joinrealpath
2024-09-05 08:13:46 FileNotFoundError: [Errno 2] No such file or directory: '_build'
2024-09-05 08:13:46 make: *** [Makefile:20: livehtml] Error 1
Host system configuration:
Version of cookiecutter CLI: Cookiecutter 2.6.0
OS name and version:
Python version: Python 3.12.5
Docker version: Docker version 27.1.1, build 6312585
docker compose version: Docker Compose version v2.29.1-desktop.1
Options selected:
The text was updated successfully, but these errors were encountered: