Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

pycallgraph.exceptions.PyCallGraphException #177

Open
Integralist opened this issue Oct 5, 2017 · 6 comments
Open

pycallgraph.exceptions.PyCallGraphException #177

Integralist opened this issue Oct 5, 2017 · 6 comments

Comments

@Integralist
Copy link

Hello,

I'm seeing this error with Python 3.6.1...

Traceback (most recent call last):
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/bin/pycallgraph", line 25, in <module>
    with __pycallgraph.PyCallGraph(config=__config):
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycallgraph/pycallgraph.py", line 32, in __init__
    self.reset()
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycallgraph/pycallgraph.py", line 53, in reset
    self.prepare_output(output)
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycallgraph/pycallgraph.py", line 97, in prepare_output
    output.sanity_check()
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycallgraph/output/graphviz.py", line 63, in sanity_check
    self.ensure_binary(self.tool)
  File "/Users/markmcdonnell/.pyenv/versions/3.6.1/Python.framework/Versions/3.6/lib/python3.6/site-packages/pycallgraph/output/output.py", line 96, in ensure_binary
    'The command "{}" is required to be in your path.'.format(cmd))
pycallgraph.exceptions.PyCallGraphException: The command "dot" is required to be in your path.
@reflash
Copy link

reflash commented Oct 17, 2017

@Integralist, I faced same issue, just install graphviz to your system, depending on OS you have to add dot.exe directory to PATH variable.
After reloading command terminals opened everything worked fine.

@Integralist
Copy link
Author

Awesome. Thanks @reflash

@spatran137
Copy link

@reflash, So I clearly need some help with this. I am getting the same exception but I am not clear as to were to add the dot command or directory. Thank you.

@reflash
Copy link

reflash commented Nov 3, 2017

@spatran137, Can you give some details? Not sure what problem you have. If you installed graphviz - then just find the directory path, where the dot.exe exists and add it to system PATH variable.

@spatran137
Copy link

@reflash, So that was my issue I did not put the directory path in the system PATH variable. I was not thinking right I put it in the User variables. Once I put it in the system it worked. Thank you for your help.

@ctrngk
Copy link

ctrngk commented May 28, 2018

debian:
sudo apt-get install graphviz
macos:
brew install graphviz

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants