Closed guideloom closed 1 year ago
I have also tried this
dot is located at /usr/bin/dot
# which dot
/usr/bin/dot
updated the plantuml file accordingly:
#!/bin/bash
export GRAPHVIZ_DOT=/usr/bin/dot
java -jar /usr/local/bin/plantuml.jar -graphvizdot /usr/bin/dot "$@"
it yields the same result at above. dot is being looked for at /opt/local/bin/dot.
Fixed. The above "-graphvizdot" add to the file did fix this. The next issue was the cache in my web browser. Once I forced a reload, all is good.
I added the following two lines (or three including import os
) to make it use the dot
command in my PATH
:
os.environ['GRAPHVIZ_DOT'] = shutil.which('dot')
plantuml = 'java -jar plantuml-1.2023.1.jar'
Note that I didn't have to specify -graphvizdot
.
I added the following two lines (or three including
import os
) to make it use thedot
command in myPATH
:os.environ['GRAPHVIZ_DOT'] = shutil.which('dot') plantuml = 'java -jar plantuml-1.2023.1.jar'
Note that I didn't have to specify
-graphvizdot
.
On Windows this was the only solution that worked.
I have the following simple uml file that is generated correctly at https://www.plantuml.com/plantuml/png/SoWkIImgAStDuL8ioKZDJLKeoQ_aqYX9BIunr5JGrRLJ0BEDDBaSKlDIWCe0
The file is also saved as test.puml
This is my plantuml file, as per your suggestion in /usr/local/bin
plantuml version information:
plantuml -testdot shows it runs correctly.
Running
plantuml test.puml
on it's own, generates the correct png image, same as the output from the above link. So I know the plantuml file works and generates the correct output.The problem is when I use this in sphinx using your plantuml extension. All other regular uml diagrams work, it's just "dot/class" that does not.
the rst section looks like this:
I don't get the expected image as per the previous two tests, I get the following instead:
Why is your extension looking for dot hardcoded at /opt/local/bin/dot?