Hi all, I failed to deploy the sphinx docs with unbutu 22.04, but I was successful with ubuntu 20.04 to deploy the sphinx docs, what’s going on, the error message is
"
7:43:59 PM: $ make html
7:43:59 PM: /bin/sh: 1: sphinx-build: not found
7:43:59 PM: make: *** [Makefile:20: html] Error 127
7:43:59 PM:
7:43:59 PM: “build.command” failed
7:43:59 PM: ────────────────────────────────────────────────────────────────
7:43:59 PM:
7:43:59 PM: Error message
7:43:59 PM: Command failed with exit code 2: make html ( Search results for '"non-zero exit code: 2"' - Netlify Support Forums )
7:43:59 PM:
7:43:59 PM: Error location
7:43:59 PM: In Build command from Netlify app:
7:43:59 PM: make html
7:43:59 PM:
7:43:59 PM: Resolved config
7:43:59 PM: build:
7:43:59 PM: command: make html
7:43:59 PM: commandOrigin: ui
7:43:59 PM: publish: /opt/build/repo/build/html
7:43:59 PM: publishOrigin: ui
7:43:59 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:43:59 PM: Failing build: Failed to build site
7:43:59 PM: Finished processing build request in 14.485s
The command doesn’t exist. Are you sure it’s installed?
thinks for your Answer,Yes, in the Python requirements file, Sphinx==8.2.3 is included.
Can you share an example repo where the problem happens?
My project address is GitHub - warmasy/furo-test: furo-test . Configuring with the default options fails the deployment, but when I change the image to Ubuntu Focal 20.04 yes, the project deploys successfully. But Ubuntu Focal 20.04 will soon be out of support.the successful address is 目录结构建立 - playspace
You can change line 7 in your makefile to be:
SPHINXBUILD ?= python3 -m sphinx
Thank you for your help, I successfully deployed this project just now
