Skip to content

Graph and complexgraph results in following error #440

@yewalenikhil65

Description

@yewalenikhil65

Graph and complexgraph both are giving similar such error.

julia> Catalyst.Graph(rn)
Error showing value of type Graph:
ERROR: IOError: could not spawn `dot -Tsvg`: no such file or directory (ENOENT)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
    @ Base ./process.jl:99
  [2] #637
    @ ./process.jl:112 [inlined]
  [3] setup_stdios(f::Base.var"#637#638"{Cmd}, stdios::Vector{Any})
    @ Base ./process.jl:196
  [4] _spawn
    @ ./process.jl:111 [inlined]
  [5] open(cmds::Cmd, stdio::IOContext{IOBuffer}; write::Bool, read::Bool)
    @ Base ./process.jl:374
  [6] open(f::Catalyst.var"#1996#1999"{Graph}, cmds::Cmd, args::IOContext{IOBuffer}; kwargs::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:write,), Tuple{Bool}}})
    @ Base ./process.jl:391
  [7] run_graphviz(io::IOContext{IOBuffer}, graph::Graph; prog::Nothing, format::String)
    @ Catalyst ~/.julia/packages/Catalyst/Iw1xh/src/graphs.jl:122
  [8] show(io::IOContext{IOBuffer}, #unused#::MIME{Symbol("image/svg+xml")}, graph::Graph)
    @ Catalyst ~/.julia/packages/Catalyst/Iw1xh/src/graphs.jl:134
  [9] show(io::IOContext{IOBuffer}, m::String, x::Graph)
    @ Base.Multimedia ./multimedia.jl:111
 [10] displayinplotpane(x::Graph)
    @ Atom ~/.julia/packages/Atom/bfwsW/src/display/showdisplay.jl:67
 [11] display(d::Atom.JunoDisplay, x::Graph)
    @ Atom ~/.julia/packages/Atom/bfwsW/src/display/showdisplay.jl:118
 [12] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:328
 [13] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [14] invokelatest
    @ ./essentials.jl:706 [inlined]
 [15] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:247
 [16] (::REPL.var"#40#41"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:231
 [17] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:462
 [18] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:229
 [19] (::REPL.var"#do_respond#61"{Bool, Bool, Atom.var"#246#247"{Module}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:798
 [20] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [21] invokelatest
    @ ./essentials.jl:706 [inlined]
 [22] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2441
 [23] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:1126
 [24] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:411

this is on julia 1.6.3, with

(@v1.6) pkg> st
      Status `~/.julia/environments/v1.6/Project.toml`
  [c52e3926] Atom v0.12.35
  [6e4b80f9] BenchmarkTools v1.2.0
  [052768ef] CUDA v3.5.0
  [479239e8] Catalyst v10.0.0
  [861a8166] Combinatorics v1.0.2
  [2445eb08] DataDrivenDiffEq v0.6.6
  [aae7a2af] DiffEqFlux v1.43.0
  [c894b116] DiffEqJump v7.3.1
  [0c46a032] DifferentialEquations v6.19.0
  [587475ba] Flux v0.12.8
  [e5e0dc1b] Juno v0.8.4
  [093fc24a] LightGraphs v1.3.5
  [961ee093] ModelingToolkit v6.7.1
  [91a5bcdd] Plots v1.23.2
  [1fd47b50] QuadGK v2.4.2
  [b4db0fb7] ReactionNetworkImporters v0.11.2
  [90137ffa] StaticArrays v1.2.13
  [8dfed614] Test

I did not have such problem with julia 1.6.2. anyone here has tried this with julia 1.6.3 ?

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