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

java.io.IOException: Cannot run program "dot": error=2, No such file or directory #96

Open
luoxinjie1146 opened this issue Feb 2, 2020 · 3 comments

Comments

@luoxinjie1146
Copy link

0_demo.ipynb
// same 3-point moving average filter as before
visualize(() => new FirFilter(8, Seq(1.U, 1.U, 1.U)))
[info] [0.000] Elaborating design...
[info] [0.071] Done elaborating.
Total FIRRTL Compile Time: 159.2 ms

java.io.IOException: Cannot run program "dot": error=2, No such file or directory
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
scala.sys.process.ProcessBuilderImpl$Simple.run(ProcessBuilderImpl.scala:75)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:104)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:103)
dotvisualizer.FirrtlDiagrammer$.render(FirrtlDiagrammer.scala:93)
dotvisualizer.transforms.ModuleLevelDiagrammer.execute(ModuleLevelDiagrammer.scala:184)
dotvisualizer.transforms.MakeDiagramGroup.execute(MakeDiagramGroup.scala:48)
ammonite.$file.dummy.source.load$minusivy_2$Helper.generateVisualizations(Main.sc:155)
ammonite.$file.dummy.source.load$minusivy_2$Helper.visualize(Main.sc:173)
ammonite.$sess.cmd5$Helper.(cmd5.sc:1)
ammonite.$sess.cmd5$.(cmd5.sc:7)
ammonite.$sess.cmd5$.(cmd5.sc:-1)
java.io.IOException: error=2, No such file or directory
java.lang.UNIXProcess.forkAndExec(Native Method)
java.lang.UNIXProcess.(UNIXProcess.java:247)
java.lang.ProcessImpl.start(ProcessImpl.java:134)
java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
scala.sys.process.ProcessBuilderImpl$Simple.run(ProcessBuilderImpl.scala:75)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:104)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:103)
dotvisualizer.FirrtlDiagrammer$.render(FirrtlDiagrammer.scala:93)
dotvisualizer.transforms.ModuleLevelDiagrammer.execute(ModuleLevelDiagrammer.scala:184)
dotvisualizer.transforms.MakeDiagramGroup.execute(MakeDiagramGroup.scala:48)
ammonite.$file.dummy.source.load$minusivy_2$Helper.generateVisualizations(Main.sc:155)
ammonite.$file.dummy.source.load$minusivy_2$Helper.visualize(Main.sc:173)
ammonite.$sess.cmd5$Helper.(cmd5.sc:1)
ammonite.$sess.cmd5$.(cmd5.sc:7)
ammonite.$sess.cmd5$.(cmd5.sc:-1)

@seldridge
Copy link
Contributor

Try installing graphviz for your distribution which provides the dot program.

@edwardcwang
Copy link
Collaborator

We could consider adding a more user-friendly error message here.

@Future-2100
Copy link

Problems solved, Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants