Skip to content

bad interaction with @pyimport #17

@ggggggggg

Description

@ggggggggg

GraphViz doesn't seem to work on my system if I do @pyimport before trying to it. Below I've included a minimal example and output. If I make the GraphViz calls before the @pyimport, then future GraphViz calls work. I can probably use that as a work around for now.

I can't reproduce the error on JuliaBox, so it may be OSX specific?

Not sure where this issue actually belong, only posted it here though.

using GraphViz
using Graphs
using PyCall

@pyimport scipy.signal as scipysignal
g = simple_wheel_graph(6)

dot = to_dot(g)
gviz = GraphViz.Graph(dot)
println("Calling layout!")
GraphViz.layout!(gviz,engine="dot")
println("Starting file write.")
open("test.svg","w") do f 
       GraphViz.writemime(f, MIME"image/svg+xml"(),gviz)
end #do

output:

Calling layout!
Warning: Could not load "??/libgvplugin_dot_layout.6.dylib" - file not found
Error: Layout type: "dot" not recognized. Use one of: circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
Starting file write.
Warning: Could not load "??/libgvplugin_core.6.dylib" - file not found
Warning: Could not load "??/libgvplugin_core.6.dylib" - file not found
Error: Layout was not done
Julia Version 0.3.6
Commit 0c24dca* (2015-02-17 22:12 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.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