Questions tagged [pycallgraph]

Python Call Graph is a Python module that creates call graph visualizations for Python applications.

Python Call Graph is a Python module that creates call graph visualizations for Python applications.

http://pycallgraph.slowchop.com/en/master/

22 questions
5
votes
1 answer

How can I resolve PyCallGraphException: The command "dot -Tpng -failed with error code 256 error?

Trying to run the following command to make graph of calls using pycallgraph - pycallgraph graphviz --output-file=/var/www/html/Reports/winmain.png -- token_check.py But I am getting following error when I run the…
Mr. Sigma.
  • 405
  • 1
  • 4
  • 15
4
votes
1 answer

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…
The Beast
  • 1,629
  • 2
  • 29
  • 42
3
votes
1 answer

How do I remove an entire call tree from pycallgraph with a filter

I want to see what's happening with a specific operation in a python3 package I've been working on. I use pycallgraph and it looks great. But I can't figure out how to remove an entire tree of calls from the output. I made a quick script…
spanishgum
  • 1,030
  • 1
  • 14
  • 29
2
votes
0 answers

Python PyCallGraph.PyCallGraphException Graphviz

Im trying to use the pycallgraph library for Python on my Windows commandline from pycallgraph import PyCall Graph from pycallgraph.output import GraphvizOutput with PyCallGraph(output=GraphvizOutput()): for i in range(0,11): …
KnakworstKoning
  • 361
  • 3
  • 6
  • 18
2
votes
0 answers

How to get useful information from pycallgraph tracing?

In my question about tracking the python execution I was recommended to use pycallgraph so I decided to give it a try on following code: #!/bin/env python import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 2, 100) # The first…
Wakan Tanka
  • 7,542
  • 16
  • 69
  • 122
2
votes
1 answer

Pycallgraph not generating graphd output in debug mode

I'm using Pycallgraph to generate output, but I want to save the intermediate graphd output (instead of generating an image) because I want to make some small modifications to it. I'm running as: PYTHONPATH=. pycallgraph -d graphviz --…
mr-sk
  • 13,174
  • 11
  • 66
  • 101
1
vote
1 answer

How to exclude pycallgraph2 from PyCallGraph context wrapper?

The following minimal working example from pycallgraph2 import PyCallGraph from pycallgraph2.output import GraphvizOutput with PyCallGraph(output=GraphvizOutput()): None produces this output: Why does PyCallGraph2 describe itself while…
Galen
  • 1,128
  • 1
  • 14
  • 31
1
vote
0 answers

pycallgraph module - No attribute Config

After intalling pycallgraph, I had to rename the file to pycallgraph.py on windows, and when running I get the following error message: pycallgraph -h (for help) module 'pycallgraph' has no attribute 'Config' I've got my path variables set up…
dirtyw0lf
  • 1,899
  • 5
  • 35
  • 63
1
vote
2 answers

Python PyCallGraphException

I have copied an example from their own website but i do not know how to get it working. Link to their example This is my code: from pycallgraph import PyCallGraph from pycallgraph.output import GraphvizOutput class Banana: def eat(self): …
KnakworstKoning
  • 361
  • 3
  • 6
  • 18
1
vote
1 answer

Julia Calling Python Function

I've been trying to call python functions from Julia using this code: using PyCall unshift!(PyVector(pyimport("sys")["path"]), "") @pyimport testing print(testing.add()) testing is in the same path. the testing python file: def add(): return 5…
Ben Rei
  • 109
  • 1
  • 3
  • 12
1
vote
1 answer

C:\Python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/Program': [Errno 2] No such file or directory

Hi after installing code2flow , the process has finish successfully $ python setup.py install running install running bdist_egg running egg_info creating code2flow.egg-info writing code2flow.egg-info\PKG-INFO writing top-level names to…
The Beast
  • 1,629
  • 2
  • 29
  • 42
1
vote
0 answers

running PyCallgraph on PyCharm

I am trying to run PyCallgraph module on my application. My application runs on Mac and I am running the application from PyCharm Here is what I have tried def main(url): from pycallgraph import PyCallGraph from pycallgraph.output import…
Anurag Sharma
  • 4,839
  • 13
  • 59
  • 101
1
vote
1 answer

PyCallGraph middleware in django

I'm trying to implement a middleware in django(1.4) to create a call graph using PyCallGraph. I've based it from two different snippets found online. This is what it looks like: import time from django.conf import settings from pycallgraph import…
Leonardo
  • 4,046
  • 5
  • 44
  • 85
1
vote
1 answer

Non-graphical output from pycallgraph

I've started writing a small Python utility to cache functions. The available caching tools (lru_cache, Beaker) do not detect changes of sub-functions. For this, I need a Call Graph. There exists an excellent tool in pycallgraph by Gerald Kaszuba.…
Unapiedra
  • 15,037
  • 12
  • 64
  • 93
1
vote
1 answer

pycallgraph with pycharm does not work on windows

I m using Windows 7, Python 3.4.1, Anaconda 2.0.1 , Pycharm 3.4. Graphviz and dot work normally in the console. However, when trying to use pycallgraph it finishes with an error. "C:\Users\John\Anaconda3\python.exe"…
1
2