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

Example Fails: no method matching open(::Type{GraphViz.Graph}, ::String) #31

Closed
michaellindon opened this issue Jan 30, 2018 · 2 comments

Comments

@michaellindon
Copy link

I ran the example but it fails:

julia> using GraphViz

julia> open(Graph,"mygraph.dot")
ERROR: MethodError: no method matching open(::Type{GraphViz.Graph}, ::String)
Closest candidates are:
  open(::AbstractString, ::AbstractString) at iostream.jl:132
  open(::Function, ::Any...) at iostream.jl:150
  open(::Base.AbstractCmd, ::AbstractString) at process.jl:575
  ...
Stacktrace:
 [1] macro expansion at ./REPL.jl:97 [inlined]
 [2] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73

I'm using Julia Version 0.6.0 (2017-06-19 13:05 UTC)

@mantzaris
Copy link

mantzaris commented Mar 19, 2018

I have tried saving he example with the graph string representation in the 'mygraph.dot' file and put into a variable the 'Graph' object with receiving the same error.
`open(Graph(""" digraph graphname { a -> b -> c; b -> d; }"""),"mygraph1.dot")

ERROR: MethodError: no method matching open(::GraphViz.Graph, ::String)
Closest candidates are:
open(::AbstractString, ::AbstractString) at iostream.jl:132
open(::Function, ::Any...) at iostream.jl:150
open(::Base.AbstractCmd, ::AbstractString) at process.jl:575

`

@Keno
Copy link
Contributor

Keno commented Nov 19, 2021

The API has been updated and now uses either FIleIO or a macro.

@Keno Keno closed this as completed Nov 19, 2021
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

3 participants