Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does the following code result in missing lines #1019

Open
protester-pog opened this issue Sep 12, 2024 · 7 comments
Open

Why does the following code result in missing lines #1019

protester-pog opened this issue Sep 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@protester-pog
Copy link

`from diagrams import Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB

with Diagram("Grouped Workers", show=False, direction="TB"):
ELB("lb") >> [EC2("worker1"),
EC2("worker2"),
EC2("worker3"),
EC2("worker4"),
EC2("worker5")] >> RDS("events")`

my python version is 3.10;"The result of executing the code is as shown in the image."
grouped_workers

@acaylor
Copy link

acaylor commented Sep 12, 2024

I see similar issue. is there a bug introduced recently? I also am seeing the last part of the line vanish:

from diagrams import Cluster,Diagram
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
from diagrams.aws.network import ClientVpn

with Diagram("Grafana OSS", show=False, direction="TB"):
    lb = ELB("private-lb")
    db = RDS("postgres-db")
    vpn = ClientVpn("vpn")

    with Cluster("Grafana ec2 instances"):
        svc_group = [EC2("grafana1"),
                     EC2("grafana2"),
                     EC2("grafana3")]

    vpn >> lb >> svc_group
    svc_group >> db

grafana_oss

*Edit:

I generated this image with the same code back in February 2024 and the lines looked correct

grafana_oss

@mingrammer
Copy link
Owner

What versions of Diagrams and GraphViz are you using?

@acaylor
Copy link

acaylor commented Sep 16, 2024

I'm on macOS. Looks like homebrew has been updating my install of Graphviz.

Installed
/opt/homebrew/Cellar/graphviz/12.1.1 (281 files, 7.9MB) *
❯ pip list |rg -i diagram
diagrams   0.23.4

@mingrammer
Copy link
Owner

mingrammer commented Sep 19, 2024

This issue was also reproduced to me (I'm using [email protected]). Higher version of GraphViz maybe the root cause I think. So I'll test it with older version of GraphViz, and need to find how to fix it. Thank you for reporting it.

@mingrammer mingrammer added the bug Something isn't working label Sep 19, 2024
@mingrammer
Copy link
Owner

mingrammer commented Sep 19, 2024

@protester-pog @acaylor With [email protected], it works properly. Please downgrade the GraphViz less than 12.0.0.

@protester-pog
Copy link
Author

@protester-pog @acaylor With [email protected], it works properly. Please downgrade the GraphViz less than 12.0.0.

Thanks,Now i use 11.0.0 is ok ;last time i use the 12.1.0 ;

@protester-pog
Copy link
Author

protester-pog commented Sep 20, 2024

@protester-pog @acaylor With [email protected], it works properly. Please downgrade the GraphViz less than 12.0.0.

and I use CentOS7 also ok
Uploading 222.png…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants