Skip to content

using PythonCall in Pluto crashes Pluto Malt.TerminatedWorkerException #711

Description

@schlichtanders

Affects: PythonCall

Describe the bug
I would like to experiment with PythonCall in Pluto. In a new installation of Pluto v0.20.20 the single line using PythonCall crashes the new notebook with a Malt.TerminatedWorkerException. Importing other packages like PlutoPlotly works just fine.

Your system
Please provide detailed information about your system:

  • tested on ubuntu WSL on Windows and on NixOS
  • Julia 1.12.1 and Pluto 0.20.20

Additional context
I think this was once working if I remember right. Unfortunately I cannot extract anymore detailed error notice. When switching to using Distributed instead of Malt Pluto.run(workspace_use_distributed_stdlib=true), I get a EOFError

Worker 2 terminated.Distributed
.ProcessExitedExceptionUnhandled Task ERROR: EOFError: read end of file

Activity

behinger commented on Nov 13, 2025

@behinger

running into the same bug :(

I can add that in Julia 1.11.5 it still works (I have to use MicroMamba backend though, pixi runs into a infinite loop)

cjdoris commented on Nov 14, 2025

@cjdoris
Member

I think you'll need to dig into what error is actually happening on the worker process - can you get the underlying exception or stack trace or anything?

One thought is that there are known issues with Python 3.14 that can cause unexpected exits. If you pin to Python 3.13 does the issue persist?

behinger commented on Nov 27, 2025

@behinger

Edit: okay, I now noticed the new release & the FAQ with python 3.14. This can be closed


sorry missed this post.

  • I now tested this in an explicit Malt process. (From Pluto.jl I do not get any feedback in the console). "Unfortunately", in the manual Malt-Worker session, it works. I used this command: Malt.remote_eval_fetch(worker, :(using Pkg;Pkg.activate(mktempdir()); ENV["JULIA_CONDAPKG_BACKEND"] ="MicroMamba";Pkg.add("PythonCall");using PythonCall))
  • in the Malt worker it actually installed python 3.13, I assume Pluto does something similar but cannot confirm right now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions