Closed jobrachem closed 8 months ago
Maybe an error related to quarto? In the sense that quarto need to read and write input to python.
Then it would surprise me a little that we see it only in one tutorial. I ran it locally to gather more information.
The error occurs in the setup code chuck. If I comment out both the pymc import and the PyMCInterface import, then quarto does get past the setup code block. Of course the liesel pymc module imports pymc. So my guess is that the error is caused in some way by pmc. But actually you are right: The error only occurs when rendering with quarto, not when I run the code block individually. So it seems to be the combination of quarto and pymc that causes the problem.
#| label: setup
#| include: false
import liesel.goose as gs
# import pymc as pm
import numpy as np
# from liesel.experimental.pymc import PyMCInterface
import jax
gs.Summary._repr_markdown_ = gs.Summary._repr_html_
I pinned the pymc version and submitted an issue to quarto: https://github.com/quarto-dev/quarto-cli/issues/7684 I also created a new issue to remind us to unpin pymc once the issue is resolved: #162
Seems to be a reticulate problem. There's now also an issue on the reticulate repo: https://github.com/rstudio/reticulate/issues/1508
Link: https://github.com/liesel-devs/liesel/actions/runs/6893579115/job/18753461961
This is the error message:
We do not use
decode()
in the liesel source code anywhere as far as I can tell. My current assumption is that this is caused by a dependency.