Giter Site home page Giter Site logo

Comments (10)

yerrochdi avatar yerrochdi commented on May 22, 2024 3

conda install -c conda-forge graphviz xorg-libxrender xorg-libxpm
pip install graphviz

works for me !!!!

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

What is your macOS version? I can't reproduce it. (with the same versions for all except Graphviz dot 2.42.2)

from diagrams.

jenisys avatar jenisys commented on May 22, 2024

Using macOS 10.14.x, graphviz was installed with brew (which normally takes care of macOS versions variances). Note that graphviz-dot is usable in principle, image= is also OK, I can open the PNG file by using the filepath.

One correction, installed graphviz package is 2.42.2, but if you ask dot for its version you get 2.43.0.

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

Oh sorry, Yes, my dot version is 2.43.0 too.

Hm. .. Could you please show your full dot code for the above diagram? I need to compare your dot code and mine.

from diagrams.

jenisys avatar jenisys commented on May 22, 2024

As already stated, the image=...attribute seems to be causing the problem.

# -- FILE: simple_diagram
digraph "Simple Diagram" {
	graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Simple Diagram" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
	node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
	edge [color="#7B8894"]
	bc91704d1167f5988d2be776b9bf2fbf [label=web height=1.9 image="/Users/xxx/diagrams_1/.venv_py3/lib/python3.8/site-packages/resources/aws/compute/ec2.png" shape=none]
}

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

It's mine.

digraph "Simple Diagram" {
	graph [fontcolor="#2D3436" fontname="Sans-Serif" fontsize=15 label="Simple Diagram" nodesep=0.60 pad=2.0 rankdir=LR ranksep=0.75 splines=ortho]
	node [fixedsize=true fontcolor="#2D3436" fontname="Sans-Serif" fontsize=13 height=1.4 imagescale=true labelloc=b shape=box style=rounded width=1.4]
	edge [color="#7B8894"]
	"691c0a63bb283f1adf6f0e8dc4e54088" [label=web height=1.9 image="/Users/xxx/workspace/mingrammer/diagrams/resources/aws/compute/ec2.png" shape=none]
}

I don't understand why image= field causes the SIGILL error (illegal instruction) .. It could be an issue of dot installed on your system or some CPU / memory corruptions.

Could you try rebooting your computer? (maybe, can solve the corrupted memory problem..)

Reference: https://stackoverflow.com/questions/7901867/what-causes-signal-sigill

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

Is it solved?

from diagrams.

jenisys avatar jenisys commented on May 22, 2024

I retried it with diagrams-0.6.3, but the problem still exists (SIGILL, ILLEGAL INSTRUCTION), problem is the image=xxx attribute.

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

Rebooting can't solve that problem? Hmm ..

from diagrams.

mingrammer avatar mingrammer commented on May 22, 2024

I close it. Reopen if same problem raises.

from diagrams.

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.