mossum
mossum copied to clipboard
Exception when generating image
I get the following exception on Linux and Windows when attempting to generate an image. It might be something simple.
`$ mossum http://moss.stanford.edu/results/xxxxxxxxx/index.html Generating image for moss_xx-xx-xxxx_xxxxxx Traceback (most recent call last): File "C:\Users<user name>\Anaconda3\lib\site-packages\pydot.py", line 1878, in create stderr=subprocess.PIPE, stdout=subprocess.PIPE) File "C:\Users<user name>\Anaconda3\lib\subprocess.py", line 947, in init restore_signals, start_new_session) File "C:\Users<user name>\Anaconda3\lib\subprocess.py", line 1224, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/
I had the same problem earlier. Installing graphviz fix the problem for me.
Just to make things clearer. As @zdzc mentioned you should install graphviz
using your package manager. I was stuck trying to install graphviz using pip
.
sudo apt install graphviz
Is there a way to get around this without needing to install graphviz through brew/conda? I'm having the same issue on Mac and I need to avoid using homebrew/anaconda in the file. I found the pip version of graphviz doesn't work either.
@FlynnMc No, not that I am aware of.
You can just download it, compile if necessary and add it to your path.