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

Failed to precompile in polyglot quarto notebook using knitr engine #96

Closed
danlooo opened this issue Mar 10, 2025 · 2 comments
Closed

Comments

@danlooo
Copy link
Collaborator

danlooo commented Mar 10, 2025

Quarto enables polyglot notebooks to create Documentation about julia and bash commands. We need to use kntr engine for that. Cell rendering works until RQADeforestation is getting precompiled:

Error in quarto render foo.qmd:

ERROR: LoadError: InitError: could not load library "/home/dloos/.julia/artifacts/2829a1f6a9ca59e5b9b53f52fa6519da9c9fd7d3/lib/libhdf5.so"
/usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_4' not found (required by /home/dloos/.julia/artifacts/2829a1f6a9ca59e5b9b53f52fa6519da9c9fd7d3/lib/libhdf5.so)

because of ArchGDAL:

ERROR: LoadError: Failed to precompile ArchGDAL [c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3] to "/home/dloos/.julia/compiled/v1.11/ArchGDAL/jl_hnNByk".

because of:

Failed to precompile RQADeforestation
@danlooo danlooo changed the title Failed to precompile in polyglot quarto notebook Failed to precompile in polyglot quarto notebook using knitr engine Mar 10, 2025
@felixcremer
Copy link
Collaborator

This might be similar to JuliaPy/PythonCall.jl#397.
Have you tried setting eval to false for all bash cells?

@danlooo
Copy link
Collaborator Author

danlooo commented Mar 12, 2025

Fixed after activating a fresh Julia env. Maybe JuliaCall::julia_setup(JULIA_HOME = "/home/dloos/.juliaup/bin/", rebuild=TRUE) did also its job.

@danlooo danlooo closed this as completed Mar 12, 2025
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

2 participants