Problem loading Distributions package in Pluto

I am using Pluto for assigning homework, and one of my students is unable to load the Distributions package. The error they get after running “using Distributions” is below. Subsequently, the functions from the Distributions package do not work. They are running the template code that I gave them, which runs without problems on my machine. I have also tried running the exact code they sent back to me to illustrate the problem, and it runs perfectly on my machine. How should I direct them to fix this problem?

The error after running “using Distributions” is this:

On worker 2:

MethodError: no method matching pretty_stackcall(::Base.StackTraces.StackFrame, ::Module)

Closest candidates are:

pretty_stackcall(::Base.StackTraces.StackFrame, !Matched::Core.MethodInstance)

@ Pluto ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:1035

pretty_stackcall(::Base.StackTraces.StackFrame, !Matched::Core.CodeInfo)

@ Pluto ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:1031

pretty_stackcall(::Base.StackTraces.StackFrame, !Matched::Nothing)

@ Pluto ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:1019

Stacktrace:

[1] #56

@ ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:993

[2] iterate

@ ./generator.jl:47 [inlined]

[3] _collect

@ ./array.jl:854

[4] collect_similar

@ ./array.jl:763

[5] map

@ ./abstractarray.jl:3282

[6] #format_output#52

@ ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:992

[7] formatted_result_of

@ ~/.julia/packages/Pluto/9zGI7/src/runner/PlutoRunner.jl:864

[8] top-level scope

@ none:1

[9] eval

@ ./boot.jl:385

[10] #invokelatest#2

@ ./essentials.jl:887

[11] invokelatest

@ ./essentials.jl:884

[12] #110

@ /opt/julia-1.10.0/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:286

[13] run_work_thunk

@ /opt/julia-1.10.0/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:70

[14] #109

@ /opt/julia-1.10.0/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:286

Never mind, it turns out that the student needed to install Pluto using root admin rights. When they started Julia as root everything worked fine.

Hmm… Julia should not need root privileges to operate correctly. That said I see that the student has an installation of Julia within /opt suggesting a customized system install of Julia.

1 Like