Skip to content

Cannot use env vars to point to other Conda env with running workers #278

@visr

Description

@visr

In trying to debug #276 what confused me for a while was that I got errors like this:

ERROR: Julia server returned error after receiving "run" command:
Failed to run notebook: C:\ProgramData\DevDrives\repo\ribasim\Ribasim\docs\guide\delwaq.qmd
ERROR: EvaluationError: Encountered 13 errors during evaluation

Error 1 of 13
@ C:\ProgramData\DevDrives\repo\ribasim\Ribasim\docs\guide\delwaq.qmd:37
Python: ModuleNotFoundError: No module named 'ribasim'
Python stacktrace:
 [1] <module>
   @ C:\ProgramData\DevDrives\repo\ribasim\Ribasim\docs\guide\delwaq.qmd:38

While I was running quarto from environment B I noticed that QuartoNoteBookRunner still had A as the active environment. I ran from A earlier. But I didn't realize that QuartoNotebookRunner kicks of a server that stays alive, and needs to be manually killed such that it will start a new server for environment B.

I'm not sure what can be done about this, but ideally the server gets restarted in such a case if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions