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

Graphviz Loading Problem #2

Open
Ernestas-S opened this issue Oct 14, 2023 · 1 comment
Open

Graphviz Loading Problem #2

Ernestas-S opened this issue Oct 14, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@Ernestas-S
Copy link

Graphviz was not loading correctly, although

'C:/Program Files/Graphviz/bin' is added to the User Path
and
'C:/Program Files/Graphviz/bin/dot.exe' is added to the System Path

This issue was fixed by adding the location to where the bin file is located to the top of the main.py file:
Example:
import os os.environ["PATH"] += os.pathsep + 'C:/Program Files/Graphviz/bin'

@mbrav
Copy link
Owner

mbrav commented Oct 14, 2023

I cannot replicate this issue since I do not use Windows. To setup Graphviz, I recommend looking at the Diagrams documentation as well as Graphviz documentation.

But given that in your case Graphviz becomes callable only when os.environ["PATH"] is modified, I can only suspect that the binary location for Graphviz was not actually added to your PATH environment variable when launching the Python script.

To fix this issue I can suggest reading this.

@mbrav mbrav added the wontfix This will not be worked on label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants