-
Notifications
You must be signed in to change notification settings - Fork 21
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
renderer for x11 is unavailable #18
Comments
Hi, I'm having a similar-ish problem but on Ubuntu 14.04, however the same code works on a 12.04 system. The initial indications are writemime and Cairo.jl related. I filed an issue there: I'm trying to draw a Graphs.jl with GraphViz.jl -- this works fine on 0.3.8, 0.3.10, 0.4-dev+5933 (12.04) but not 0.4-dev+5933 on 14.04. GraphViz.Graph(to_dot(g)) Error: renderer for julia:cairo is unavailable MethodError: writemime has no method matching writemime(::Base.Base64.Base64EncodePipe, ::Base.Multimedia.MIME{symbol("image/png")}, ::Void) in writemime at /home/dehann/.julia/v0.4/GraphViz/src/GraphViz.jl:590 More infoI'm working from IJulia notebook and there are 5 packages of interest:
thanks, |
I've seen this in JuliaGraphics/Cairo.jl#109 |
Hi @lobingera, thanks I did not see #11 issue before -- I think the difference is my issue is happening on Ubuntu 14.04. I'll post there. |
and maybe another problem: Graphviz is not available via Pkg.add? |
The current Graphviz_jll is also not built against x11, but we do build against cairo. I'd prefer to keep it that way and use the generic image viewer API for viewing graph results. |
I am using GraphViz in Emacs with ESS on OS X Yosemite and am having an issue with rendering my .dot files. Here is my code, which seems to be failing at the final rendering step.
using GraphViz
g = open("graph.dot","r") do io Graph(io) end
GraphViz.layout!(g)
GraphViz.render_x11(GraphViz.Context(),g)
The package is making it past the layout step, but gives the result "Error: renderer for x11 is unavailable
-1" even though I have X11 on my machine. Is there additional setup that needs to be done? Furthermore, if there is another way to render the graph without X11, I am willing to do that.
The text was updated successfully, but these errors were encountered: