-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Document build failed with the error "Build output directory for format "pdf" contains multiple files and it is not currently supported." #10015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @TTYee! Can you provide the information asked in the template when you filled the form? (project URL, build URL, etc) |
Cython has the same problem.
|
@GalaxySnail hi! Are you able to build the PDF locally using latexmk? |
I haven't tried it. I'm running diff on these 2 logs: diff -Nu <(curl https://readthedocs.org/api/v2/build/19395633.txt) <(curl https://readthedocs.org/api/v2/build/19423261.txt) | head -n 20 --- /proc/self/fd/11 2023-02-19 07:42:14.000000000 +0800
+++ /proc/self/fd/14 2023-02-19 07:42:14.000000000 +0800
@@ -1,18 +1,18 @@
Read the Docs build information
-Build id: 19395633
+Build id: 19423261
Project: cython
Version: latest
Commit: b24286d35aaaf1318cd2bebb10e3e16d72965a5b
-Date: 2023-02-06T17:21:37.353864Z
+Date: 2023-02-08T17:40:15.490385Z
State: finished
-Success: True
+Success: False
-[rtd-command-info] start-time: 2023-02-06T17:21:38.926762Z, end-time: 2023-02-06T17:21:47.712146Z, duration: 8, exit-code: 0
+[rtd-command-info] start-time: 2023-02-08T17:40:17.041926Z, end-time: 2023-02-08T17:40:26.123477Z, duration: 9, exit-code: 0
git clone --no-single-branch --depth 50 https://github.com/cython/cython .
Cloning into '.'... It looks like most of them are the same, latexmk was always failing, the only meaningful different is
It seems that something changed in readthedocs.org, failed latexmk didn't cause the build to fail. However, it seems to be fixed recently, so the build starts failing again. |
Can you try building the PDF locally? |
I found this error is confusing our users in different ways. The real solution here would be to fail the build immediately when any of the PDF commands failed (#7884). Right now, we are just moving forward and then the users are receiving this unexpected and confusing messages. These are other related issues as well:
I think it would be good to standardize this behavior to match with the rest of the commands. |
@GalaxySnail Hi. I've found the PDF output is not neccessary for my project( I only need HTML output up to now). So I closed the "enable PDF build"(which is set by default) on the "advanced setup" page of our project then the project can be built successfully again. I mean, if PDF output is not neccessary for you either, you can try this method. |
Yes. It can reproduce locally, but I don't know why. $ LC_ALL=C python -m sphinx -T -E -b latex -d _build/doctrees -D language=en . _readthedocs/pdf expand output
$ cd _readthedocs/pdf
$ cat latexmkrc $latex = 'latex ' . $ENV{'LATEXOPTS'} . ' %O %S';
$pdflatex = 'pdflatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
$lualatex = 'lualatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
$xelatex = 'xelatex --no-pdf ' . $ENV{'LATEXOPTS'} . ' %O %S';
$makeindex = 'makeindex -s python.ist %O -o %D %S';
add_cus_dep( "glo", "gls", 0, "makeglo" );
sub makeglo {
return system( "makeindex -s gglo.ist -o '$_[0].gls' '$_[0].glo'" );
} $ latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=cython -interaction=nonstopmode
Thanks for the explanation. As a workaround, Cython has decided to stop building PDF docs. |
I build my project document successfully before, but recently it failed with the error message "Build output directory for format "pdf" contains multiple files and it is not currently supported. Please, remove all the files but the "pdf" your want to upload. "

it seems like error occurred in this step:

I didn't find any method to solve this problem. Is there anyone who knows this problem? Thank u. T-T
The text was updated successfully, but these errors were encountered: