SymPy.jl icon indicating copy to clipboard operation
SymPy.jl copied to clipboard

Sympy.jl not working in newer versions of julia, in fedora 43

Open jgardona opened this issue 2 months ago • 3 comments

Hello, good morging.

Im getting this exception trying to run pluto under a desktop setup.

Fedora Linux 43 (Workstation Edition) AMD Ryzen™ 7 5700X × 16 Gigabyte Technology Co., Ltd. B550M K AMD Radeon™ RX 7600 Linux 6.17.6-300.fc43.x86_64

Pluto version - [c3e4b0f8] Pluto v0.20.20

All happens trying to add SymPy.jl

Image
julia> Pluto.run()
┌ Info: 
│ Opening http://localhost:1234/?secret=1xjUDprR in your default browser... ~ have fun!
└ 
┌ Info: 
│ Press Ctrl+C in this terminal to stop Pluto
└ 
Malt.TerminatedWorkerException()Hello, good morging.

Im getting this exception trying to run pluto under a desktop setup.

Fedora Linux 43 (Workstation Edition)
AMD Ryzen™ 7 5700X × 16
Gigabyte Technology Co., Ltd. B550M K
AMD Radeon™ RX 7600
Linux 6.17.6-300.fc43.x86_64

Pluto version - [c3e4b0f8] Pluto v0.20.20

All happens trying to add SymPy.jl

<img width="864" height="334" alt="Image" src="https://github.com/user-attachments/assets/8698c549-db7c-4192-a283-5e724775a64d" />

julia> Pluto.run() ┌ Info: │ Opening http://localhost:1234/?secret=1xjUDprR in your default browser... ~ have fun! └ ┌ Info: │ Press Ctrl+C in this terminal to stop Pluto └ Malt.TerminatedWorkerException() Stacktrace: [1] _assert_is_running @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:603 [inlined] [2] _send_msg(worker::Malt.Worker, msg_type::UInt8, msg_data::Tuple{typeof(Core.eval), Tuple{Module, Expr}, @Kwargs{}, Bool}, expect_reply::Bool) @ Malt ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:355 [3] _send_receive @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:389 [inlined] [4] #remote_call_fetch#56 @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:460 [inlined] [5] remote_call_fetch @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:459 [inlined] [6] remote_eval_fetch @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:538 [inlined] [7] remote_eval_fetch(w::Malt.Worker, expr::Expr) @ Malt ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:539 [8] collect_soft_definitions(session_notebook::Tuple{Pluto.ServerSession, Pluto.Notebook}, modules::Set{Expr}) @ Pluto.WorkspaceManager ~/.julia/packages/Pluto/FKi1T/src/evaluation/WorkspaceManager.jl:622 [9] run_reactive_core!(session::Pluto.ServerSession, notebook::Pluto.Notebook, old_topology::PlutoDependencyExplorer.NotebookTopology{Pluto.Cell}, new_topology::PlutoDependencyExplorer.NotebookTopology{Pluto.Cell}, roots::Vector{Pluto.Cell}; save::Bool, deletion_hook::typeof(Pluto.WorkspaceManager.move_vars), user_requested_run::Bool, already_run::Vector{Pluto.Cell}, bond_value_pairs::Base.Iterators.Zip{Tuple{Vector{Symbol}, Vector{Any}}}) @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:232 [10] (::Pluto.var"#310#311"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook})() @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:486 [11] withtoken(f::Pluto.var"#310#311"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook}, token::Pluto.Token) @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Tokens.jl:19 [12] #308 @ ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:462 [inlined] [13] (::Pluto.var"#maybe_async##0#maybe_async##1"{Pluto.var"#308#309"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook}})() @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Tokens.jl:58



Stacktrace:
  [1] _assert_is_running
    @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:603 [inlined]
  [2] _send_msg(worker::Malt.Worker, msg_type::UInt8, msg_data::Tuple{typeof(Core.eval), Tuple{Module, Expr}, @Kwargs{}, Bool}, expect_reply::Bool)
    @ Malt ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:355
  [3] _send_receive
    @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:389 [inlined]
  [4] #remote_call_fetch#56
    @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:460 [inlined]
  [5] remote_call_fetch
    @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:459 [inlined]
  [6] remote_eval_fetch
    @ ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:538 [inlined]
  [7] remote_eval_fetch(w::Malt.Worker, expr::Expr)
    @ Malt ~/.julia/packages/Malt/QnJNJ/src/Malt.jl:539
  [8] collect_soft_definitions(session_notebook::Tuple{Pluto.ServerSession, Pluto.Notebook}, modules::Set{Expr})
    @ Pluto.WorkspaceManager ~/.julia/packages/Pluto/FKi1T/src/evaluation/WorkspaceManager.jl:622
  [9] run_reactive_core!(session::Pluto.ServerSession, notebook::Pluto.Notebook, old_topology::PlutoDependencyExplorer.NotebookTopology{Pluto.Cell}, new_topology::PlutoDependencyExplorer.NotebookTopology{Pluto.Cell}, roots::Vector{Pluto.Cell}; save::Bool, deletion_hook::typeof(Pluto.WorkspaceManager.move_vars), user_requested_run::Bool, already_run::Vector{Pluto.Cell}, bond_value_pairs::Base.Iterators.Zip{Tuple{Vector{Symbol}, Vector{Any}}})
    @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:232
 [10] (::Pluto.var"#310#311"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook})()
    @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:486
 [11] withtoken(f::Pluto.var"#310#311"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook}, token::Pluto.Token)
    @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Tokens.jl:19
 [12] #308
    @ ~/.julia/packages/Pluto/FKi1T/src/evaluation/Run.jl:462 [inlined]
 [13] (::Pluto.var"#maybe_async##0#maybe_async##1"{Pluto.var"#308#309"{Bool, @Kwargs{}, Pluto.ServerSession, Pluto.Notebook}})()
    @ Pluto ~/.julia/packages/Pluto/FKi1T/src/evaluation/Tokens.jl:58

jgardona avatar Nov 03 '25 17:11 jgardona

I was testing and created a bug track in Pluto.jl, but the issue only happens with sympy. Its crashing in vscode, pluto and jupyterlab with IJulia.

https://github.com/fonsp/Pluto.jl/issues/3408#issuecomment-3481254890

jgardona avatar Nov 03 '25 17:11 jgardona

It isn't a fix, but did you try SymPyPythonCall instead? That should be a drop-in replacement.

jverzani avatar Nov 03 '25 18:11 jverzani

Will try to confirm that.

jgardona avatar Nov 03 '25 18:11 jgardona