Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run pycallgraph for python

I'm using windows 7 , with python 2.7 and pip 8.0.2

i have installed pyCallGraph for python using pip in cygwin

pip install pycallgraph

When trying to execute it :

$ pycallgraph graphviz -- ../main.py
    C:\python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/pycallgraph': [Errno 2] No such file or directory

That's weird because pycallgraph is present in the Script folder and i'm executing the commanf from the same folder

If i ran the command for the second time :

$ pip install pycallgraph
Requirement already satisfied (use --upgrade to upgrade): pycallgraph in c:\python27\lib\site-packages

I'm new to python , any help will be appreciated , thanks

like image 260
The Beast Avatar asked Nov 15 '25 19:11

The Beast


1 Answers

I think I'm late to the party... pip install graphviz

pycallgraph makes use of graphviz to visualize graphs. Hence, a prerequisite of pycallgraph is graphviz. I had a similar issue, and installing graphviz fixed the problem for me.

like image 149
DUDANF Avatar answered Nov 18 '25 07:11

DUDANF



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!