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

Pyramid docs PDF version fails to build #5503

Closed
stevepiercy opened this issue Mar 19, 2019 · 4 comments
Closed

Pyramid docs PDF version fails to build #5503

stevepiercy opened this issue Mar 19, 2019 · 4 comments
Assignees
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@stevepiercy
Copy link
Contributor

Details

Per #5453 (comment) I have opened this issue. This is the master branch of Pyramid.

Note that I install extra xelatex packages. I don't know if that is relevant. The build error appears to be because it cannot find

Please let me know what I can do to troubleshoot. Thank you!

  • Read the Docs project URL:

https://readthedocs.org/projects/pyramid/

  • Build URL (if applicable):

https://readthedocs.org/projects/pyramid/builds/8781263/

  • Read the Docs username (if applicable):

stevepiercy

Expected Result

Successful build of PDF version

Actual Result

Failed to build PDF. Tail of build log:

Output written on pyramid.pdf (1273 pages).
Transcript written on pyramid.log.
Latexmk: Index file 'pyramid.idx' was written
Latexmk: References changed.
Latexmk: Missing input file: 'pyramid.ind' from line
  'No file pyramid.ind.'
Latexmk: References changed.
Latexmk: Log file says output to 'pyramid.pdf'
Rule 'makeindex pyramid.idx': File changes, etc:
   Non-existent destination files:
      'pyramid.ind'
------------
Run number 1 of rule 'makeindex pyramid.idx'
------------
------------
Running 'internal xindy   -o "pyramid.ind" "pyramid.idx"'
------------
Latexmk: calling xindy( -o pyramid.ind pyramid.idx )
Latexmk: applying rule 'makeindex pyramid.idx'...
Can't exec "xindy": No such file or directory at (eval 11) line 14.
Collected error summary (may duplicate other messages):
  makeindex pyramid.idx: Command for 'makeindex pyramid.idx' gave return code -1
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Latexmk: Errors, so I did not complete making targets
@humitos
Copy link
Member

humitos commented Mar 20, 2019

Hi @stevepiercy! The problem is that you are using xindy and we don't support it yet. It's failing because it's not installed in our environment. See #5476.

latex_use_xindy is setup to False by default on Read the Docs right now until we support it. It seems you are set it to True at some point. Actually, because it's the default behavior when using xelatex

The default is True for 'xelatex' or 'lualatex' as makeindex, if any indexed term starts with a non-ascii character, creates .ind files containing invalid bytes for UTF-8 encoding. With 'lualatex' this then breaks the PDF build.

http://www.sphinx-doc.org/en/stable/usage/configuration.html#confval-latex_use_xindy

I need to fix that to avoid using xindy while it's not supported.

In the meantime, you should force to be latex_use_xindy = False and it should work (it worked locally).

@humitos humitos self-assigned this Mar 20, 2019
@humitos humitos added Bug A bug Accepted Accepted issue on our roadmap labels Mar 20, 2019
@stevepiercy
Copy link
Contributor Author

@humitos thanks for the tip. Tried again with that setting, and the PDF version of the docs built successfully. 🎆 🍾 🍻

Once #5507 is merged, then I should remove the setting, correct?

@humitos
Copy link
Member

humitos commented Mar 20, 2019

Once #5507 is merged, then I should remove the setting, correct?

It's the same. I won't change anything.

You should remove it if you really want your PDF to build using xindy, but it doesn't seem needed for your project.

@stevepiercy
Copy link
Contributor Author

Thank you to everyone who worked on this beast. PDFing is hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

No branches or pull requests

2 participants