Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

ERROR: could not spawn neato -Tx11: no such file or directory (ENOENT) #215

Open
piperod opened this issue Mar 10, 2016 · 6 comments
Open

Comments

@piperod
Copy link

piperod commented Mar 10, 2016

I am running Julia v.0.5. and Graphs v. 0.6 on OS El capitan. The full error I get is :

inlined code] from ./strings/io.jl:73
 in _jl_spawn(::ASCIIString, ::Array{ByteString,1}, ::Ptr{Void}, ::Base.Process, ::Base.PipeEndpoint, ::Base.DevNullStream, ::Base.TTY) at ./process.jl:332
 in setup_stdio(::Base.##170#171{Cmd}, ::Tuple{Pipe,Base.DevNullStream,Base.TTY}) at ./process.jl:485
 in #spawn#169(::Nullable{Base.ProcessChain}, ::Any, ::Cmd, ::Tuple{Pipe,Base.DevNullStream,Base.TTY}, ::Bool, ::Bool) at ./process.jl:484
 [inlined code] from ./boot.jl:331
 in open(::Cmd, ::ASCIIString, ::Base.DevNullStream) at ./process.jl:551
 [inlined code] from ./process.jl:543
 in plot(::Graphs.GenericGraph{Int64,Graphs.Edge{Int64},UnitRange{Int64},Array{Graphs.Edge{Int64},1},Array{Array{Graphs.Edge{Int64},1},1}}) at /Users/mac/.julia/v0.5/Graphs/src/dot.jl:91
 in eval(::Module, ::Any) at ./boot.jl:267
@jagot
Copy link

jagot commented Mar 17, 2016

Make sure you have Graphviz installed. If you are using Homebrew, simply issue

$ brew install graphviz

in a terminal window.

Also see #172.

@kmsquire
Copy link
Contributor

kmsquire commented Apr 9, 2016

@piperod, can you give a minimal way to reproduce this error?

@piperod
Copy link
Author

piperod commented Apr 9, 2016

Thanks @kmsquire and @jagot for your answers. I did what @jagot suggested and it worked, but now I am getting this message : "Format: "x11" not recognized. Use one of: bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gif gv icns ico imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz xdot xdot1.2 xdot1.4"

@piperod
Copy link
Author

piperod commented Apr 9, 2016

And @kmsquire I am following the steps described in the documentation at 1.8 https://media.readthedocs.org/pdf/graphsjl-docs/latest/graphsjl-docs.pdf

@dehann
Copy link
Contributor

dehann commented Dec 6, 2016

Hi @piperod, are you still seeing this error? Seems to be working fine on Ubuntu 12.04 and 14.04...

 g = simple_graph(3)
add_edge!(g, 1, 2)
add_edge!(g, 3, 2)
add_edge!(g, 3, 1)
plot(g)

@dehann
Copy link
Contributor

dehann commented Dec 11, 2016

A work around is to export to file and convert to pdf separately:

fh = open("temp.dot","w")
write(to_dot(g))
close(fh)

Then in command line you can run neato (or equivalent graphviz process) to draw the graph:

neato -Tpdf temp.dot -o graphpicture.pdf

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

No branches or pull requests

5 participants