Coder Social home page Coder Social logo

Comments (6)

SimonFrings avatar SimonFrings commented on July 1, 2024

Hey @elementallos, thanks for bringing this up 👍

Like @clue described in graphp/graphviz#31, the Unable to invoke "dot" to create image file (code 127)... error message means you do not have GraphViz installed (the dot executable is part of the GraphViz package). On Debian/Ubuntu-based system you may simply install it like this:

$ sudo apt install graphviz

This has been answered in #4 as well and is also mentioned inside the documentation.
Ref: #43

I believe this should answer your question, so I will close this ticket for now. We can reopen this if you encounter the same issues again after trying out the solutions mentioned in here.

from graph-composer.

sardjn avatar sardjn commented on July 1, 2024

But is not working anyway for me...
As I said already, in the first message, I have already tried to do:

$ sudo apt install graphviz

but is still not working. It's like the installation is not successful, even though I have no errors.

from graph-composer.

SimonFrings avatar SimonFrings commented on July 1, 2024

As I said already, in the first message, I have already tried to do:

$ sudo apt install graphviz

You're right, so this would mean you can't even try dot -v to check the GraphViz version, right?

from graph-composer.

sardjn avatar sardjn commented on July 1, 2024

Yes, I can do dot -v, it is only on the PHP code, when I try to generate the .svg
The installation with sudo apt install is successful: I don't get any error messages. But when I try to use the command, it looks like this (var_dump):

'dot' -T 'svg' '/tmp/graphvizDEdKjJ' -o '/tmp/graphvizDEdKjJ.svg'

Edit: I have also tried to paste the command in the terminal to see what could possibly happen. This is the result:

gabriel@HP:~ dot -T 'svg' '/tmp/graphvizDEdKjJ' -o '/tmp/graphvizDEdKjJ.svg'
Error: dot: can't open /tmp/graphvizDEdKjJ

from graph-composer.

sardjn avatar sardjn commented on July 1, 2024

@SimonFrings any updates?

from graph-composer.

SimonFrings avatar SimonFrings commented on July 1, 2024

[…] But when I try to use the command, it looks like this (var_dump):

@sardjn You're trying to access some temporary files that are created and also removed by the project itself, this is why the message tells you that dot can't open /tmp/graphvizDEdKjJ (the file doesn't exist). It seems like you have graphviz successfully installed, otherwise the message would tell you that it doesn't know the dot command, you just can't access these unknown files.

from graph-composer.

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.