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

[Errno 2] "dot" not found in path #7

Open
jmoeyersons opened this issue Mar 25, 2020 · 2 comments
Open

[Errno 2] "dot" not found in path #7

jmoeyersons opened this issue Mar 25, 2020 · 2 comments

Comments

@jmoeyersons
Copy link

When testing mossum for the first time, I've always got the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/pydot.py", line 1915, in create
    working_dir=tmp_dir,
  File "/usr/local/lib/python3.7/site-packages/pydot.py", line 136, in call_graphviz
    **kwargs
  File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/mossum", line 9, in <module>
    mossum.main()
  File "/usr/local/lib/python3.7/site-packages/mossum/mossum.py", line 291, in main
    image(res, i+1)
  File "/usr/local/lib/python3.7/site-packages/mossum/mossum.py", line 262, in image
    graph.write(filename, format=args.format)
  File "/usr/local/lib/python3.7/site-packages/pydot.py", line 1817, in write
    s = self.create(prog, format, encoding=encoding)
  File "/usr/local/lib/python3.7/site-packages/pydot.py", line 1922, in create
    raise OSError(*args)
FileNotFoundError: [Errno 2] "dot" not found in path.

Apparantly, installing graphviz on Macos (brew install graphviz) or Linux distributions (apt-get install graphviz) will fix this issue
(Not tested on Windows)

@siniar1990
Copy link

I had similar issue, but I can confirm installing graphviz with brew on Mac solve this issue.

@bykhov
Copy link

bykhov commented Nov 26, 2020

I confirm installing graphviz on Windows (https://forum.graphviz.org/t/new-simplified-installation-procedure-on-windows/224) resolve the issue.

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

3 participants