Comments (6)
In my case, a workaround using the windows executable of graphviz is currently feasible (even though it is slightly cumbersome as I need to write the tree into a text file, which I would prefer to avoid)
from graphviz.jl.
I get similar error on linux
julia> Pkg.build("GraphViz")
INFO: Building GraphViz
WARNING: BinDeps.shlib_ext is deprecated.
likely near /home/-/.julia/v0.6/GraphViz/deps/build.jl:37
INFO: Attempting to create directory /home/-/.julia/v0.6/GraphViz/deps/downloads
INFO: Directory /home/-/.julia/v0.6/GraphViz/deps/downloads already exists
INFO: Downloading file http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
======================================================[ ERROR: GraphViz ]=======================================================
LoadError: failed process: Process(`curl -f -o /home/-/.julia/v0.6/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(22)) [22]
while loading /home/-/.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 /home/-/.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
================================================================================================================================
and
julia> using GraphViz
ERROR: LoadError: GraphViz not properly installed. Please run Pkg.build("GraphViz").
Stacktrace:
[1] error(::String) at ./error.jl:21
[2] include_from_node1(::String) at ./loading.jl:576
[3] eval(::Module, ::Any) at ./boot.jl:235
[4] _require(::Symbol) at ./loading.jl:490
[5] require(::Symbol) at ./loading.jl:405
while loading /home/-/.julia/v0.6/GraphViz/src/GraphViz.jl, in expression starting on line 5
from graphviz.jl.
this is a workaround that worked for me on linux:
editing ~/.julia/v0.6/GraphViz/deps/build.jl
and replacing this line:
provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz"),graphviz)
with
provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz.tar.gz"),graphviz)
And then,
julia>Pkg.build("GraphViz")
this would most likely give error:
LoadError: Path /home/-/.julia/v0.6/GraphViz/deps/src/graphviz was not created successfully (Tried to run `tar xzf /home/-/.julia/v0.6/GraphViz/deps/downloads/graphviz.tar.gz --directory=/home/-/.julia/v0.6/GraphViz/deps/src` )
while loading /home/-/.julia/v0.6/GraphViz/deps/build.jl, in expression starting on line 44
which can be resolved by
$mv -/.julia/v0.6/GraphViz/deps/src/graphviz-* -/.julia/v0.6/GraphViz/deps/src/graphviz
from graphviz.jl.
This is my workaround on Windows.
-
change tar.gz file name in build.jl
following @mandarup comment above:
provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.36.0.tar.gz"),graphviz)
to
provides(Sources,URI("http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz.tar.gz"),graphviz)
-
add Cairo package
Pkg.add("Cairo")
-
build GraphViz
Pkg.build("GraphViz")
After the workaround, I have no errors with 'using GraphViz'.
from graphviz.jl.
I tried the Windows workaround but I'm still getting the same error.
from graphviz.jl.
The future is now
from graphviz.jl.
Related Issues (20)
- Error: renderer for julia:cairo is unavailable HOT 8
- windows binaries HOT 25
- GraphViz Installation issue on OS X HOT 11
- bad interaction with @pyimport HOT 1
- renderer for x11 is unavailable HOT 5
- segmentation fault following upgrade to julia v0.4 HOT 1
- Build error on Mac HOT 2
- Error when trying Pkg.add("GraphViz") HOT 1
- needs update for string.data changes
- Add support for precompilation? HOT 1
- Example Fails: no method matching open(::Type{GraphViz.Graph}, ::String) HOT 2
- not available for Julia1.1 HOT 3
- Info about upcoming removal of packages in the General registry
- Julia v1.3? HOT 1
- Project file missing HOT 2
- TagBot trigger issue HOT 1
- Does not seem to handle certain position related attributes HOT 5
- Possible thread safety issue with `active_devices` HOT 1
- ccall: could not find function cairo_get_target: The Return HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphviz.jl.