Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotly is Broken #63

Open
usmcamp0811 opened this issue Nov 5, 2023 · 0 comments
Open

Plotly is Broken #63

usmcamp0811 opened this issue Nov 5, 2023 · 0 comments

Comments

@usmcamp0811
Copy link

Am I doing it all wrong or is Plotly broke?

julia> using Plotly
┌ Warning: Kaleido is not available on this system. Julia will be unable to save images of any plots.
└ @ PlotlyJS ~/.config/julia/packages/PlotlyJS/qhYQ5/src/kaleido.jl:65
┌ Warning: ErrorException("Could not start Kaleido process")
└ @ PlotlyJS ~/.config/julia/packages/PlotlyJS/qhYQ5/src/kaleido.jl:66

julia> plot(1:10)
Error showing value of type PlotlyJS.SyncPlot:
ERROR: IOError: could not spawn `/home/mcamp/.config/julia/packages/Blink/mwJC9/deps/atom/electron /home/mcamp/.config/julia/packages/Blink/mwJC9/src/AtomShell/main.js port 6285`: no such file or directory (ENOENT)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Union{RawFD, IO}})
    @ Base ./process.jl:128
  [2] #760
    @ ./process.jl:139 [inlined]
  [3] setup_stdios(f::Base.var"#760#761"{Cmd}, stdios::Vector{Union{RawFD, IO}})
    @ Base ./process.jl:223
  [4] _spawn
    @ ./process.jl:138 [inlined]
  [5] run(::Cmd; wait::Bool)
    @ Base ./process.jl:483
  [6] run
    @ ./process.jl:477 [inlined]
  [7] init(; debug::Bool)
    @ Blink.AtomShell ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/process.jl:92
  [8] init
    @ ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/process.jl:87 [inlined]
  [9] #shell#9
    @ ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/process.jl:149 [inlined]
 [10] shell
    @ ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/process.jl:140 [inlined]
 [11] #Window#14
    @ ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/window.jl:89 [inlined]
 [12] Blink.AtomShell.Window(args::Dict{String, Int64})
    @ Blink.AtomShell ~/.config/julia/packages/Blink/mwJC9/src/AtomShell/window.jl:89
 [13] display_blink(p::PlotlyJS.SyncPlot)
    @ PlotlyJS ~/.config/julia/packages/PlotlyJS/qhYQ5/src/display.jl:169
 [14] display(#unused#::PlotlyJS.PlotlyJSDisplay, p::PlotlyJS.SyncPlot)
    @ PlotlyJS ~/.config/julia/packages/PlotlyJS/qhYQ5/src/display.jl:160
 [15] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:340
 [16] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [17] invokelatest
    @ ./essentials.jl:813 [inlined]
 [18] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:305
 [19] (::REPL.var"#57#58"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:287
 [20] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:557
 [21] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:285
 [22] (::REPL.var"#do_respond#80"{Bool, Bool, REPL.var"#93#103"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:899
 [23] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [24] invokelatest
    @ ./essentials.jl:813 [inlined]
 [25] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2647
 [26] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /nix/store/2wcn9b3izbbiy1f3qmw55lj9zzvdhrvx-julia-1.9.1/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1300
 [27] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:514

(@v1.9) pkg> build Plotly
    Building WebIO ───→ `~/.config/julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/0eef0765186f7452e52236fa42ca8c9b3c11c6e3/build.log`
    Building Blink ───→ `~/.config/julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/08d0b679fd7caa49e2bca9214b131289e19808c0/build.log`
    Building PlotlyJS → `~/.config/julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/3db9e7724e299684bf0ca8f245c0265c4bdd8dc6/build.log`

The electron binary is put into the Julia directory but something is off..

drwxr-xr-x mcamp ldap_user  494 B  Sat Nov  4 20:03:04 2023  ./
drwxr-xr-x mcamp ldap_user   42 B  Sat Nov  4 20:03:04 2023  ../
drwxr-xr-x mcamp ldap_user  682 B  Sat Nov  4 20:03:04 2023  locales/
drwxr-xr-x mcamp ldap_user   58 B  Sat Nov  4 20:03:04 2023  resources/
drwxr-xr-x mcamp ldap_user   42 B  Sat Nov  4 20:03:04 2023  swiftshader/
.rw-r--r-- mcamp ldap_user  164 KB Sat Feb  2 02:54:26 2019  chrome_100_percent.pak
.rw-r--r-- mcamp ldap_user  244 KB Sat Feb  2 02:54:26 2019  chrome_200_percent.pak
.rwxr-xr-x mcamp ldap_user  110 MB Sat Feb  2 03:07:56 2019  electron*
.rw-r--r-- mcamp ldap_user  9.7 MB Sat Feb  2 02:39:14 2019  icudtl.dat
.rwxr-xr-x mcamp ldap_user  250 KB Sat Feb  2 03:07:56 2019  libEGL.so*
.rwxr-xr-x mcamp ldap_user  3.0 MB Sat Feb  2 03:07:56 2019  libffmpeg.so*
.rwxr-xr-x mcamp ldap_user  5.8 MB Sat Feb  2 03:07:56 2019  libGLESv2.so*
.rwxr-xr-x mcamp ldap_user  6.9 MB Sat Feb  2 02:46:00 2019  libVkICD_mock_icd.so*
.rw-r--r-- mcamp ldap_user  1.0 KB Sat Feb  2 02:16:36 2019  LICENSE
.rw-r--r-- mcamp ldap_user  1.9 MB Sat Feb  2 02:43:56 2019  LICENSES.chromium.html
.rw-r--r-- mcamp ldap_user  122 KB Sat Feb  2 03:00:04 2019  natives_blob.bin
.rw-r--r-- mcamp ldap_user  8.3 MB Sat Feb  2 02:54:26 2019  resources.pak
.rw-r--r-- mcamp ldap_user  627 KB Sat Feb  2 03:07:26 2019  snapshot_blob.bin
.rw-r--r-- mcamp ldap_user 1016 KB Sat Feb  2 03:07:38 2019  v8_context_snapshot.bin
.rw-r--r-- mcamp ldap_user    5 B  Sat Feb  2 02:16:36 2019  version
╭─mcamp on butler in ~/.config/julia/packages/Blink/mwJC9/deps/atom
╰─ ./electron /home/mcamp/.config/julia/packages/Blink/mwJC9/src/AtomShell/main.js
zsh: no such file or directory: ./electron

All this is being run from the templated devshell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant