Closed richelbilderbeek closed 1 year ago
It had nothing to do with reticulate
, another qml file was used to render third, and that one failed as well. ~The problem seems to be the third qml file render, regardless of the contents of the qml file.~
The problem seems to in a (Python-only) qmd file. I will create a reprex at https://github.com/richelbilderbeek/quarto_actions_issue_80...
You are using Python in your qmd file: https://github.com/UPPMAX/programming_formalisms/blob/fc410729e37d49a99f45838c704e2da3744540f9/testing/testing_lecture/testing_lecture.qmd#L49-L53
but the action script you copied above did not have Python setup. Now I see a commented python setup: https://github.com/UPPMAX/programming_formalisms/blob/42059e31421eb2fa4ce2ae7cde3f5b5e5becb915/.github/workflows/build_pdfs.yaml#L21-L30
If you are using Python in a project, you need to configure Python to use with Quarto (which requires Jupyter): https://quarto.org/docs/computations/python.html#installation
Did you try this ?
It would be the same with reticulate that requires a python setup.
@cderv thanks for this awesome answer, I'll try it, confirm if it works yes/no, then close this Issue if that worked.
Thanks :+1:
Confirmed to work! Thanks again to @cderv! Closing this Issue :-)
Dear Quarto developers,
I enjoy using
quarto-actions/render@v2
, yet it fails for unknown reasons when one calls it multiple times.In my case now, the first and second use of
quarto-actions/render@v2
both work fine, whereas the third fails, with unexpected errors asModuleNotFoundError: No module named 'nbformat'
andJupyter is not available in this Python installation
. Theqmd
file being rendered does not contain me usingnbformat
norJupyter
, ~~but it does use the R libraryreticulate
(which calls Python).I guess that that is the problem, I will check now and leave this Issue as it is.~~ and it is always the third render being the problem.
Below, I show:
render
render
I hope you can help me fix this.
Thanks and cheers, Richel
The GHA log of the passing second call to
render
The failing third call call to
render
GitHub Actions script