Skip to content

Error when accessing the jupyter cache  #9618

@MHellmund

Description

@MHellmund

Bug description

With activated Jupyter cache, the second run (and further runs, until I add --cache-refresh ) of a quarto document fails when accessing the cache. Happens with Python and Julia.

Steps to reproduce

test1.qmd:

---
title: test1
cache: true
---

```{python}
1+1
```

$ export QUARTO_PRINT_STACK=true
$ quarto render test1.qmd --to html
....fine.....
$ quarto render test1.qmd --to html

Starting python3 kernel...ERROR:

expected str, bytes or os.PathLike object, not builtin_function_or_method
ERROR: Error
    at renderFiles (file:///opt/quarto/bin/quarto.js:77871:29)
    at eventLoopTick (ext:core/01_core.js:153:7)
    at async render (file:///opt/quarto/bin/quarto.js:82687:21)
    at async Command.actionHandler (file:///opt/quarto/bin/quarto.js:82835:32)
    at async Command.execute (file:///opt/quarto/bin/quarto.js:8015:13)
    at async Command.parseCommand (file:///opt/quarto/bin/quarto.js:7905:20)
    at async quarto (file:///opt/quarto/bin/quarto.js:117893:5)
    at async file:///opt/quarto/bin/quarto.js:117905:9
    at async mainRunner (file:///opt/quarto/bin/quarto.js:117798:9)
    at async file:///opt/quarto/bin/quarto.js:117896:5

Expected behavior

No response

Actual behavior

No response

Your environment

Linux Debian 12,
Quarto 1.5.32

Quarto check output

Quarto 1.5.32
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.13: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.32
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.8
      Path: /home/hellmund/Quarto/.venv/bin/python3
      Jupyter: 5.7.2
      Kernels: python3, julia-1.10, julia-1.8, cadabra2

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.3.2
      Path: /usr/lib/R
      LibPaths:
        - /home/hellmund/R/x86_64-pc-linux-gnu-library/4.3
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.46
      rmarkdown: 2.25

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjupyterregressionFunctionality that used to work but now is broken.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions