juliagraphs / graphviz.jl Goto Github PK
View Code? Open in Web Editor NEWJulia Binding to the GraphViz library
License: Other
Julia Binding to the GraphViz library
License: Other
From a clean Julia 0.4.6 install with no packages, GraphViz says that it cannot find homebrew.
julia> Pkg.add("GraphViz")
INFO: Initializing package repository /Users/davidsanders/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
INFO: Installing BinDeps v0.4.2
INFO: Installing Compat v0.8.6
INFO: Installing GraphViz v0.0.4
INFO: Installing SHA v0.2.0
INFO: Installing URIParser v0.1.5
INFO: Building GraphViz
==============================[ ERROR: GraphViz ]===============================
LoadError: ArgumentError: Homebrew not found in path
while loading /Users/davidsanders/.julia/v0.4/GraphViz/deps/build.jl, in expression starting on line 17
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: GraphViz had build errors.
- packages with build errors remain installed in /Users/davidsanders/.julia/v0.4
- build the package(s) and all dependencies with `Pkg.build("GraphViz")`
- build a single package by running its `deps/build.jl` script
julia> versioninfo()
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.3
Upstream provides windows binaries but seemingly only 32-bit. @tkelman, do you think we could get this into opensuse? Relatively high priority since I'd like to use this package in a tutorial in 4 weeks.
Reported by a user, Julia 0.3.4:
julia> Homebrew.rm("graphviz")
Uninstalling graphviz...
julia> Homebrew.add("graphviz")
==> Installing graphviz from staticfloat/homebrew-juliadeps
==> Downloading https://juliabottles.s3.amazonaws.com/graphviz-2.38.0.yosemite.b
Already downloaded: /Users/xxx/Library/Caches/Homebrew.jl/graphviz-2.38.0.yosemite.bottle.tar.gz
==> Pouring graphviz-2.38.0.yosemite.bottle.tar.gz
๐บ /Users/xxx/.julia/v0.3/Homebrew/deps/usr/Cellar/graphviz/2.38.0: 470 files, 68M
To relink: brew unlink graphviz && brew link graphviz
julia> INFO: Building GraphViz
Unlinking /Users/xxx/.julia/v0.3/Homebrew/deps/usr/Cellar/graphviz/2.38.0... 99 symlinks removed
julia> INFO: Building GraphViz
Unlinking /Users/xxx/.julia/v0.3/Homebrew/deps/usr/Cellar/graphviz/2.38.0... 99 symlinks removed
julia> Pkg.build("GraphViz")
INFO: Building GraphViz
Unlinking /Users/xxx/.julia/v0.3/Homebrew/deps/usr/Cellar/graphviz/2.38.0... 99 symlinks removed
Warning: graphviz-2.38.0 already installed, it's just not linked
Linking /Users/xxx/.julia/v0.3/Homebrew/deps/usr/Cellar/graphviz/2.38.0... 99 symlinks created
==============================[ ERROR: GraphViz ]===============================
Provider PackageManager failed to satisfy dependency gvc
while loading /Users/xxx/.julia/v0.3/GraphViz/deps/build.jl, in expression starting on line 42
@staticfloat, is there a typical cause for the "installed but not linked" issue?
Hi,
when running a simple script like this:
using GraphViz
using FileIO
function foo()
g = dot"""
digraph graphname {
a -> b -> c;
b -> d;
}
"""
FileIO.save("graph.svg", g)
GraphViz.free(g) # This should be called as a finalizer, but let's be explicit
nothing
end
for i in 1:1000
i % 10 == 0 && println(i)
foo()
GC.gc()
end
# It's convenient to wait in the end; this makes it easy to check the final
# memory consumption with something like `top`
println("Done. Press ^C to abort")
sleep(3600)
one can readily see with a tool like top
that the memory consumption of the Julia process slowly but surely increases. On my system, resident memory is around 275Mb for the first few iterations, and increases to around 305Mb after the 1000th.
Explicitly calling free
does not seem to change anything, so it would look like the issue is more subtle than a finalizer not being called.
Is that an issue with my code? Or is there a memory leak somewhere? (And in the latter case, do you think it is an upstream issue or an issue with GraphViz.jl
?)
Thanks in advance!
Hi, I'm having some difficulty installing this package... I'm using the latest version of Julia: 0.3.1 (2014-09-21) and I get the following error when I do either Pkg.add("GraphViz")
or Pkg.build("GraphViz")
:
==============================[ ERROR: GraphViz ]===============================
None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\St Elmo Wilken.julia\v0.3\GraphViz\deps\build.jl, in exp
ression starting on line 41
================================[ BUILD ERRORS ]================================
WARNING: GraphViz had build errors.
Pkg.build(pkg)
deps/build.jl
scriptI tried the BinDeps.debug("GraphViz")
thing but I'm not sure what to do after that?
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
No tests, but package loads.
Package doesn't load.
No tests, but package loads.
means that PackageEvaluator did not find tests for your package. However, trying to load your package with using
worked.
Package doesn't load.
means that PackageEvaluator did not find tests for your package. Additionally, trying to load your package with using
failed.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("GraphViz")' log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:15 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:16 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:19 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:22 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:23 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:24 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:25 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:26 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:27 --:--:-- 0curl: (6) Could not resolve host: www.graphviz.org
INFO: Installing BinDeps v0.3.5
INFO: Installing GraphViz v0.0.2
INFO: Installing SHA v0.0.3
INFO: Installing URIParser v0.0.2
INFO: Building GraphViz
INFO: Attempting to Create directory /home/idunning/pkgtest/.julia/v0.4/GraphViz/deps/downloads
INFO: Downloading file http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz
==============================[ ERROR: GraphViz ]===============================
failed process: Process(`curl -o /home/idunning/pkgtest/.julia/v0.4/GraphViz/deps/downloads/graphviz-2.36.0.tar.gz -L http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz`, ProcessExited(6)) [6]
while loading /home/idunning/pkgtest/.julia/v0.4/GraphViz/deps/build.jl, in expression starting on line 41
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: GraphViz had build errors.
- packages with build errors remain installed in /home/idunning/pkgtest/.julia/v0.4
- build a package and all its dependencies with `Pkg.build(pkg)`
- build a single package by running its `deps/build.jl` script
================================================================================
INFO: Package database updated
>>> 'using GraphViz' log
ERROR: GraphViz not properly installed. Please run Pkg.build("GraphViz").
in error at error.jl:21
in include at ./boot.jl:246
in include_from_node1 at ./loading.jl:128
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
in include at ./boot.jl:246
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
in _start_3B_3614 at /home/idunning/julia04/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.4/GraphViz/src/GraphViz.jl, in expression starting on line 5
while loading /home/idunning/pkgtest/.julia/v0.4/GraphViz/testusing.jl, in expression starting on line 2
Julia Version 0.4.0-dev+627
Commit b3141cb (2014-09-17 05:21 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
>>> test log
no tests to run
>>> end of log
This issue is being filed by a script, but if you reply, I will see it.
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their test (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3).
The results of this script are used to generate a package listing enhanced with testing results.
The status of this package, GraphViz, on...
'No tests, but package loads.' can be due to their being no tests (you should write some if you can!) but can also be due to PackageEvaluator not being able to find your tests. Consider adding a test/runtests.jl
file.
'Package doesn't load.' is the worst-case scenario. Sometimes this arises because your package doesn't have BinDeps support, or needs something that can't be installed with BinDeps. If this is the case for your package, please file an issue and an exception can be made so your package will not be tested.
This automatically filed issue is a one-off message. Starting soon, issues will only be filed when the testing status of your package changes in a negative direction (gets worse). If you'd like to opt-out of these status-change messages, reply to this message.
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
I'm now getting this error when running the following code in IJulia:
Graph("""
digraph graphname {
a -> b -> c;
b -> d;
}
""")
The error is:
ccall: could not find function cairo_get_target
in cairo_format at /home/mlubin/.julia/v0.3/GraphViz/src/GraphViz.jl:539
julia> versioninfo()
Julia Version 0.3.0-rc4+2
Commit 4b31fdf (2014-08-18 18:39 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Hi,
I'm unable to install this package as installing any package requires a project file now. Is it possible to add the project file?
Best Regards
Deeksha
not available for Julia1.1
First perhaps I should comment that I am quite new to julia and completely new to reporting issues on GitHub. I could not find anything on the error I get below with google, so thought I should report it.
If I try
Pkg.add("GraphViz")
I get
LoadError: UndefVarError: dlsym_e not defined
while loading /home/joris/.julia/v0.5/GraphViz/deps/build.jl, in expression starting on line 42.
The full output I get is the following
INFO: Installing GraphViz v0.0.4
INFO: Building GraphViz
WARNING:@unix
is deprecated, use@static is_unix()
instead
in depwarn(::String, ::Symbol) at ./deprecated.jl:64
in @unix(::Any, ::Any) at ./deprecated.jl:476
in include_from_node1(::String) at ./loading.jl:488
in evalfile(::String, ::Array{String,1}) at ./loading.jl:504 (repeats 2 times)
in cd(::##2#4, ::String) at ./file.jl:59
in (::##1#3)(::IOStream) at ./none:13
in open(::##1#3, ::String, ::String) at ./iostream.jl:113
in eval(::Module, ::Any) at ./boot.jl:234
in process_options(::Base.JLOptions) at ./client.jl:239
in _start() at ./client.jl:318
while loading /home/joris/.julia/v0.5/GraphViz/deps/build.jl, in expression starting on line 4
WARNING: Base.OS_NAME is deprecated.
likely near /home/joris/.julia/v0.5/GraphViz/deps/build.jl:4
WARNING: Incorrect mapping in BinDeps.@install call. No dependencies will be cached.
==========================[ ERROR: GraphViz]========================================================================================================LoadError: UndefVarError: dlsym_e not defined
while loading /home/joris/.julia/v0.5/GraphViz/deps/build.jl, in expression starting on line 42===========================[ BUILD ERRORS]=========================================================================================================
WARNING: GraphViz had build errors.
- packages with build errors remain installed in /home/joris/.julia/v0.5
- build the package(s) and all dependencies with
Pkg.build("GraphViz")
- build a single package by running its
deps/build.jl
script==============================================================================> INFO: Package database updated
Seems like you have to change both your package repo and Metadata.jl to satisfy Travis, as reported in http://pkg.julialang.org/. Annoying.
Examples include attributes like rankdir
.
Versions of involved components used
Snippet for replicating the problem.
digraph graphname {
rankdir="BT";
overlap=false;
a [shape="box",URL="https://www.google.com",label="Game",target="_blank"];
b [shape="box",URL="https://www.google.com"];
a -> b [minlen=10,taillabel = "taillabel"];
}
What is seen in the local jupyter notebook
What is see when using graphviz to generate a PNG from the same dot snippet
I got the following error when trying the example in the front page in an IJulia Notebook
using GraphViz
Graph("""
graph graphname {
// The label attribute can be used to change the label of a node
a [label="Foo"];
// Here, the node shape is changed.
b [shape=box];
// These edges both have different line properties
a -- b -- c [color=blue];
b -- d [style=dotted];
}
""")
Error: renderer for julia:cairo is unavailable
`writemime` has no method matching writemime(::Base64Pipe, ::MIME{symbol("image/png")}, ::Nothing)
in writemime at /Users/chiyuan/.julia/v0.3/GraphViz/src/GraphViz.jl:587
in base64 at base64.jl:125
in display_dict at /Users/chiyuan/.julia/v0.3/IJulia/src/execute_request.jl:34
julia> versioninfo()
Julia Version 0.3.3
Commit b24213b* (2014-11-23 20:19 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.3.0)
CPU: Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Do I need to install anything externally? I tried with Pkg.checkout
but the same error.
I am getting exactly the same error as described in #6.
julia> versioninfo()
Julia Version 0.4.0-dev+1101
Commit 496351e* (2014-10-15 19:45 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (NO_LAPACK NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: liblapack.so.3
LIBM: libopenlibm
LLVM: libLLVM-3.3
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)
Hi,
I need this package for Julia v1.3?
When will it be available?
The use of active_devices
might not be thread safe if this library is used in more than one thread. Putting a new key in active_devices
could cause it to be reallocated in one thread while another thread is reading which might cause undefined behaviour.
Is there any chance support for precompilation could be added so that other packages can depend on this but still be precompiled themselves?
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
Issue 12 seems to be about windows binaries.
Is that the reason I cannot build this package on Windows?
Or can anyone tell me whey I encounter the error below?
If that is the case, I would suggest that the readme says so.
julia> BinDeps.debug("GraphViz")
INFO: Reading build script...
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
The package declares 2 dependencies.
- Library "cgraph"
- Providers:
- Autotools Build
- Library "gvc"
- Providers:
- Autotools Build
julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
==========================================[ ERROR: GraphViz ]===========================================
LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43
========================================================================================================
============================================[ BUILD ERRORS ]============================================
WARNING: GraphViz had build errors.
- packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.6
- build the package(s) and all dependencies with `Pkg.build("GraphViz")`
- build a single package by running its `deps/build.jl` script
========================================================================================================
julia>
C:\Users\bernhard.konig>cd C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps
C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps>julia
Executing .juliarc.jl... done
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32
julia> include("build.jl")
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
ERROR: LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers
Stacktrace:
[1] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:922
[2] satisfy!(::BinDeps.LibraryDependency) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:895
[3] macro expansion at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:950 [inlined]
[4] anonymous at .\<missing>:?
[5] include_from_node1(::String) at .\loading.jl:569
[6] include(::String) at .\sysimg.jl:14
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43
julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
julia>julia> BinDeps.debug("GraphViz")
INFO: Reading build script...
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
The package declares 2 dependencies.
- Library "cgraph"
- Providers:
- Autotools Build
- Library "gvc"
- Providers:
- Autotools Build
julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
==========================================[ ERROR: GraphViz ]===========================================
LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43
========================================================================================================
============================================[ BUILD ERRORS ]============================================
WARNING: GraphViz had build errors.
- packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.6
- build the package(s) and all dependencies with `Pkg.build("GraphViz")`
- build a single package by running its `deps/build.jl` script
========================================================================================================
julia>
C:\Users\bernhard.konig>cd C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps
C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps>julia
Executing .juliarc.jl... done
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.0 (2017-06-19 13:05 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32
julia> include("build.jl")
WARNING: BinDeps.shlib_ext is deprecated.
likely near C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl:37
ERROR: LoadError: None of the selected providers can install dependency cgraph.
Use BinDeps.debug(package_name) to see available providers
Stacktrace:
[1] satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:922
[2] satisfy!(::BinDeps.LibraryDependency) at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:895
[3] macro expansion at C:\Users\bernhard.konig\.julia\v0.6\BinDeps\src\dependencies.jl:950 [inlined]
[4] anonymous at .\<missing>:?
[5] include_from_node1(::String) at .\loading.jl:569
[6] include(::String) at .\sysimg.jl:14
while loading C:\Users\bernhard.konig\.julia\v0.6\GraphViz\deps\build.jl, in expression starting on line 43
julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b* (2017-06-19 13:05 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
julia>
After JuliaLang/julia#19449, soon to be merged for Julia 0.6, you will no longer be able to access the raw bytes of a string via string.data
; instead, do Vector{UInt8}(string)
. For example, this affects:
I am getting a segmentation fault on this simple example. My graph is described in a dot file named graph.dot
that contains this:
graph {
a -- b;
a -- c;
b -- d;
b -- e;
c -- f;
c -- g;
f -- h;
f -- i;
}
Then I do this:
using GraphViz
io = open("graph.dot","r")
dot = Graph(io)
and the last line causes a segmentation fault that kicks me out of julia:
signal (11): Segmentation fault
unknown function (ip: 0x7f4227bc4780)
Segmentation fault (core dumped)
Thanks for your help!
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.
As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.
To transition to the new Pkg system using Project.toml
, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.
If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.