Skip to content
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

PDF build failure #6

Open
JulienPalard opened this issue Jan 17, 2023 · 5 comments
Open

PDF build failure #6

JulienPalard opened this issue Jan 17, 2023 · 5 comments

Comments

@JulienPalard
Copy link
Member

Just spotted this on docs.python.org:

ERROR:2023-01-17 14:45:06,450:Run: "make -C /srv/docsbuild/cpython/Doc PYTHON=/srv/docsbuild/venv-3.12/bin/python SPHINXBUILD=/srv/docsbuild/venv-3.12/bin/sphinx-build BLURB=/srv/docsbuild/venv-3.12/bin/blurb VENVDIR=/srv/docsbuild/venv-3.12 'SPHINXOPTS=-D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc= -q -D locale_dirs=/srv/docsbuild/3.12/locale -D language=uk -D gettext_compact=0' SPHINXE
RRORHANDLING= autobuild-dev" KO:
    l.9983 \chapter{Глосарій}
                         
    Output written on reference.pdf (148 pages).
    Transcript written on reference.log.
    Latexmk: Index file 'reference.idx' was written
    Latexmk: References changed.
    Collected error summary (may duplicate other messages):
      pdflatex: Command for 'pdflatex' gave return code 1
          Refer to 'reference.log' for details
    Latexmk: Use the -f option to force complete processing,
     unless error was exceeding maximum runs, or warnings treated as errors.
    === TeX engine is 'XeTeX'
    Latexmk: Errors, so I did not complete making targets
    make[2]: *** [Makefile:30: reference.pdf] Error 12
    make[2]: Leaving directory '/srv/docsbuild/cpython/Doc/build/latex'
    make[1]: *** [Makefile:185: dist] Error 2
    make[1]: Leaving directory '/srv/docsbuild/cpython/Doc'
    make: *** [Makefile:237: autobuild-dev] Error 2
    make: Leaving directory '/srv/docsbuild/cpython/Doc'
@JulienPalard
Copy link
Member Author

I'm trying a build on my laptop using docsbuild-scripts:

$ python3 ./build_docs.py --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --language uk --branch 3.11

@JulienPalard
Copy link
Member Author

Can't reproduce :D

@JulienPalard
Copy link
Member Author

Ohh, but it happens on docs.python.org since a long time, at least 15 days according to the logs (i don't have more than 15 days of logs):

INFO:2023-01-05 03:28:48,381:Build start for version: 3.10, language: uk
INFO:2023-01-05 03:28:48,381:Running make autobuild-stable
DEBUG:2023-01-05 03:28:48,381:Run: "sed -i 's/ *-A switchers=1//' /srv/docsbuild/cpython/Doc/Makefile"
DEBUG:2023-01-05 03:28:48,383:Run: "sed -i 's/ *-A switchers=1//' /srv/docsbuild/cpython/Doc/Makefile" OK
DEBUG:2023-01-05 03:28:48,386:Run: "make -C /srv/docsbuild/cpython/Doc PYTHON=/srv/docsbuild/venv-3.10/bin/python SPHINXBUILD=/srv/docsbuild/venv-3.10/bin/sphinx-build BLURB=/srv/docsbuild/venv-3.10/bin/blurb VENVDIR=/srv/docsbuild/venv-3.10 'SPHINXOPTS=-D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc= -q -D locale_dirs=/srv/docsbuild/3.10/locale -D language=uk -D gettext_compact=0' SPHINXERRORHANDLING= autobuild-stable"
ERROR:2023-01-05 03:35:54,989:Run: "make -C /srv/docsbuild/cpython/Doc PYTHON=/srv/docsbuild/venv-3.10/bin/python SPHINXBUILD=/srv/docsbuild/venv-3.10/bin/sphinx-build BLURB=/srv/docsbuild/venv-3.10/bin/blurb VENVDIR=/srv/docsbuild/venv-3.10 'SPHINXOPTS=-D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc= -q -D locale_dirs=/srv/docsbuild/3.10/locale -D language=uk -D gettext_compact=0' SPHINXERRORHANDLING= autobuild-stable" KO:
    Output written on faq.pdf (86 pages).
    Transcript written on faq.log.
    Latexmk: Index file 'faq.idx' was written
    Latexmk: References changed.
    Collected error summary (may duplicate other messages):
      pdflatex: Command for 'pdflatex' gave return code 1
          Refer to 'faq.log' for details
    Latexmk: Use the -f option to force complete processing,
     unless error was exceeding maximum runs, or warnings treated as errors.
    === TeX engine is 'XeTeX'
    Latexmk: Errors, so I did not complete making targets
    make[3]: *** [Makefile:30: faq.pdf] Error 12
    make[3]: Leaving directory '/srv/docsbuild/cpython/Doc/build/latex'
    make[2]: *** [Makefile:180: dist] Error 2
    make[2]: Leaving directory '/srv/docsbuild/cpython/Doc'
    make[1]: *** [Makefile:227: autobuild-dev] Error 2
    make[1]: Leaving directory '/srv/docsbuild/cpython/Doc'
    make: *** [Makefile:237: autobuild-stable] Error 2
    make: Leaving directory '/srv/docsbuild/cpython/Doc'

It was a bit hidden in sentry by the the ja builds having the same issue :D

@JulienPalard
Copy link
Member Author

This is what I see in reference.log:

! Undefined control sequence.
\thechapter ->\@Alph 
                     \c@chapter 
l.9923 \chapter{Глосарій}
                         
? 
! Emergency stop.
\thechapter ->\@Alph 
                     \c@chapter 
l.9923 \chapter{Глосарій}
                         
End of file on the terminal!

@JulienPalard
Copy link
Member Author

I'm looking at it again today, still can't reproduce on my laptop, but can reproduce it on docs.python.org, exact same message.

JulienPalard added a commit to python/docsbuild-scripts that referenced this issue Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant