[Python] Icons are not displayed when making diagrams (Python Diagrams)

Discussão em 'Python' iniciado por Stack, Março 26, 2025.

  1. Stack

    Stack Membro Participativo

    I'm studying the Diagrams Python module. However, I can't figure out what the problem is - when trying to create the simplest schemes, the icons don't display. Here is a sample code:

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

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


    That's what this code gives out:

    the picture with the results

    why aren't the icons displayed?

    Continue reading...

Compartilhe esta Página