-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 the node of result png is blank? #229
Comments
@lipingliang I tried with last version 0.15 your code and it generate this: Maybe try the example code and see if the icon display... https://diagrams.mingrammer.com/docs/getting-started/examples If icons don't display try to reinstall. |
thanks! I have reinstall 3 times, the problem remains. |
My diagrams version is 0.16.0. In console, the error: can't open clustered_web_services. |
@mingrammer I have some experience with bug reporting in an open source project and I believe I can create a decorator to detect errors in the project and facilitate the reporting of bugs and problems like this. I think in this case it could be useful. What do you think of the idea? I can do a PR. |
@lipingliang Can you put in gist again your code well formatted. (In your first post, there's indentations problems). Can you provide more information about your environment (OS: Windows Mac Linux .... Python version etc...) |
@gabriel-tessier with Diagram("Event Processing", show=True): with Cluster("Event Flows"):
store = S3("events store") source >> workers >> queue >> handlers
|
@leandrodamascena Could you please give me some more details? Pseudo code would be greatly helpful! |
I'm sorry I can't reproduce your problem but it look like it's a problem with your system installation... and I don't have windows 7 to test. Maybe somebody else with Windows and similar environment can reproduce the error and solve your problem. |
Actually you can build your diagrams using docker, for the installation follow the instruction here: https://github.com/mingrammer/diagrams/blob/master/DEVELOPMENT.md Then you can put you file with the python code in the root of the source directory and run Hope it help. |
Hi there 👋 I have a similar issue, OS is Linux/NixOS, installed version 0.19.1. Following code:
Generates this: I suspect this is related with something missing, but I can't see any warnings/errors anywhere. Dependencies supplied are:
Can I help debugging further? |
Hi @seqizz, Is graphviz installed on your system? https://www.graphviz.org/download/#linux Can you consider using docker as described here: Hope it help you debugging your problem. |
Hi, Yes, graphviz version 2.42.2 is installed. I was trying to solve this without Docker, since I was planning to package it for NixOS also. But apparently it's already packaged. Trying from that derivation, no issues anymore. 🎉 Sorry for the noise & thanks! |
Package was missing resources. Sent instructions to the maintainer to fix this! |
what were the instructions to make this work? |
Was a solution to this ever provided? I also get this error message:
OSError: Global diagrams context not set up |
I was having the same error here, running the code in pycharm. I just change to run in command line And the image was generated in the correct way. I believe something is missing in my venv in pycharm, but command line works fine. |
dear friends:

in my program, the node of result png is blank, why? help me, thanks!
the code:
from diagrams import Cluster, Diagram
from diagrams.aws.compute import ECS, EKS, Lambda
from diagrams.aws.database import Redshift
from diagrams.aws.integration import SQS
from diagrams.aws.storage import S3
with Diagram("Event Processing", show=True):
source = EKS("k8s source")
The text was updated successfully, but these errors were encountered: