mossum icon indicating copy to clipboard operation
mossum copied to clipboard

Exception when generating image

Open nchristensen opened this issue 8 years ago • 5 comments

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//Anaconda3/Scripts/mossum", line 9, in mossum.main() File "C:\Users<user name>\Anaconda3\lib\site-packages\mossum\mossum.py", line 251, in main image(res) File "C:\Users<user name>\Anaconda3\lib\site-packages\mossum\mossum.py", line 222, in image graph.write(filename, format=args.format) File "C:\Users<user name>\Anaconda3\lib\site-packages\pydot.py", line 1774, in write s = self.create(prog, format) File "C:\Users<user name>\Anaconda3\lib\site-packages\pydot.py", line 1883, in create prog=prog)) Exception: "dot.exe" not found in path.`

nchristensen avatar Feb 17 '17 08:02 nchristensen

I had the same problem earlier. Installing graphviz fix the problem for me.

zdzc avatar Mar 02 '18 13:03 zdzc

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

tcibinan avatar Aug 22 '18 10:08 tcibinan

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 avatar Aug 22 '19 15:08 FlynnMc

@FlynnMc No, not that I am aware of.

hjalti avatar Sep 02 '19 14:09 hjalti

You can just download it, compile if necessary and add it to your path.

jakob1379 avatar Aug 06 '21 13:08 jakob1379