GithubHelp home page GithubHelp logo

build error on Windows about graphviz.jl HOT 6 CLOSED

juliagraphs avatar juliagraphs commented on September 3, 2024
build error on Windows

from graphviz.jl.

Comments (6)

kafisatz avatar kafisatz commented on September 3, 2024

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.

mandarup avatar mandarup commented on September 3, 2024

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.

mandarup avatar mandarup commented on September 3, 2024

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.

gino244 avatar gino244 commented on September 3, 2024

This is my workaround on Windows.

  1. 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)

  2. add Cairo package
    Pkg.add("Cairo")

  3. build GraphViz
    Pkg.build("GraphViz")

After the workaround, I have no errors with 'using GraphViz'.
18021401

from graphviz.jl.

benmbrennan avatar benmbrennan commented on September 3, 2024

I tried the Windows workaround but I'm still getting the same error.

from graphviz.jl.

Keno avatar Keno commented on September 3, 2024

The future is now

from graphviz.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.