-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Pandoc failure during local rendering #1911
Comments
It looks like the issue is that I wonder if pandoc just has too many dependencies to expect folks to build locally. Maybe we should be suggesting building the PDF using a docker invocation of some sort? |
I had to install
It worked once, then no more. |
@max-heller, do you have experience with building the course on Mac? @henrif75, you should be able to turn this off by removing the
on my machine because I haven't installed it here. |
Yes, I primarily develop on a Mac. @henrif75 could you try enabling verbose logging for Pandoc in [output.pandoc.profile.pdf]
output-file = "comprehensive-rust.pdf"
pdf-engine = "lualatex"
verbosity = "INFO" # ADD THIS LINE |
Here is the output: |
Do you have Noto fonts installed? The end of the log suggests missing fonts might be the fatal error:
I have the following installed through homebrew, although I'm not sure they're all needed: $ brew list --casks | grep noto
font-noto-color-emoji
font-noto-emoji
font-noto-sans
font-noto-sans-cjk
font-noto-sans-math
font-noto-sans-symbols
font-noto-serif
font-noto-serif-cjk
font-noto-serif-cjk-tc |
It worked when I installed the fonts, but I couldn't find a casket so I manually installed them. |
|
In my Silicon laptop I fixed it by using "tectonic" as a PDF renderer (changing it in the |
google/mdbook-i18n-helpers#200 is trying to figure out a way to skip running |
Hi, I hope you can help me 😄 I am trying to build the book in order to contribute with translating to spanish, but I am facing some errors... I am using a Windows 10 machine and I followed your README.md, CONTRIBUTING.md and TRANSLATIONS.md guides, but still face some errors. Here are all my steps :
Now I am able to build the english version of book with pandoc: C:\Users\s023793\letesdev\comprehensive-rust\book\es\pandoc\pdf\comprehensive-rust.pdf: withBinaryFile: permission denied (Permission denied)
pandoc exited unsuccessfully
2024-06-04 14:50:33 [ERROR] (mdbook::renderer): Renderer exited with non-zero return code.
2024-06-04 14:50:33 [ERROR] (mdbook::utils): Error: Rendering failed
2024-06-04 14:50:33 [ERROR] (mdbook::utils): Caused By: The "pandoc" renderer failed |
This is strange, are there restrictive permissions on any of the parent directories of this path? |
Hi max-heller, thanks for the answer 😄
|
This is a warning, not an error, and shouldn't impact the rest of the build.
You should be able to, yes. I'll look into it some more |
Well, as you can see in the output file (having stderr and stout outputs), the build stops there without any other message... Let me know if you need more details 😄
Great, thank you so much! 😄 |
At that point, the build has completed successfully. |
Seems like the error can occur for a variety of reasons (see e.g. here). Do you happen to have the Spanish PDF open while building? An antivirus that might be blocking Pandoc? A network drive/OneDrive setup? Have you tried wiping out the |
I am finally able to build the english and the spanish book! Thank you so much @max-heller ! However, I found many of the paragraphs in english in the spanish version are already translated... for instance, after formatting the Do you have a clue in this, by the way ? |
Happy to hear it! Just curious, if you reenable the pandoc configuration in
I'm not familiar with the translation infrastructure, this seems like a good question for a separate issue to keep this one on topic |
|
Thanks for testing! This is a specific issue that should be easy to fix, I've opened max-heller/mdbook-pandoc#96 to track it |
) Implements the approach summarized in google/mdbook-i18n-helpers#200 (comment) to disable running `mdbook-pandoc` even if it is available to avoid dependency-related issues during local rendering. Should address #1911 since `mdbook-pandoc` will no longer run locally.
I think we can close this now": We no longer run |
Following the build procedures listed in the README.md page results in
pandoc
failure:The text was updated successfully, but these errors were encountered: