Re: how to use pycallgraph in ubuntu and window?

2016-10-14 Thread meInvent bbird
succeed to draw graph, thanks

originally i think pip install graphviz is enough

then search again

there is an win32 executable file graphviz need to be install

On Friday, October 14, 2016 at 2:58:48 PM UTC+8, dieter wrote:
> meInvent bbird  writes:
> 
> > i install in ubunbu 14
> >
> > pip install graphviz
> > pip install pycallgraph
> >
> > martin@ubuntu:~/Downloads$ pycallgraph graphviz -- ./pusher.py
> > Traceback (most recent call last):
> > ...
> > pycallgraph.exceptions.PyCallGraphException: The command "dot" is required 
> > to be in your path.
> 
> This tells you that a required (operating system level) utility
> (named "dot") is not available.
> 
> Carefully read the installation instructions, especially any
> remark about dependencies. This should tell you where "dot" is supposed
> to come from. Install all operating system level dependencies.
> 
> If "dot" should have come from "graphviz", then maybe a
> "hash" is necessary to let your shell see new commands.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to use pycallgraph in ubuntu and window?

2016-10-14 Thread dieter
meInvent bbird  writes:

> i install in ubunbu 14
>
> pip install graphviz
> pip install pycallgraph
>
> martin@ubuntu:~/Downloads$ pycallgraph graphviz -- ./pusher.py
> Traceback (most recent call last):
> ...
> pycallgraph.exceptions.PyCallGraphException: The command "dot" is required to 
> be in your path.

This tells you that a required (operating system level) utility
(named "dot") is not available.

Carefully read the installation instructions, especially any
remark about dependencies. This should tell you where "dot" is supposed
to come from. Install all operating system level dependencies.

If "dot" should have come from "graphviz", then maybe a
"hash" is necessary to let your shell see new commands.

-- 
https://mail.python.org/mailman/listinfo/python-list


how to use pycallgraph in ubuntu and window?

2016-10-13 Thread meInvent bbird
i install in ubunbu 14

pip install graphviz
pip install pycallgraph

martin@ubuntu:~/Downloads$ pycallgraph graphviz -- ./pusher.py
Traceback (most recent call last):
  File "/usr/local/bin/pycallgraph", line 25, in 
with __pycallgraph.PyCallGraph(config=__config):
  File "/usr/local/lib/python2.7/dist-packages/pycallgraph/pycallgraph.py", 
line 32, in __init__
self.reset()
  File "/usr/local/lib/python2.7/dist-packages/pycallgraph/pycallgraph.py", 
line 53, in reset
self.prepare_output(output)
  File "/usr/local/lib/python2.7/dist-packages/pycallgraph/pycallgraph.py", 
line 97, in prepare_output
output.sanity_check()
  File "/usr/local/lib/python2.7/dist-packages/pycallgraph/output/graphviz.py", 
line 63, in sanity_check
self.ensure_binary(self.tool)
  File "/usr/local/lib/python2.7/dist-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.


in window 

i had already added path

C:\Python27\Lib\site-packages\graphviz;C:\Python27\Lib\site-packages\pycallgraph

 to environment variable path

but in cmd

'pycallgraph' is not recognized as an internal or external command,
operable program or batch file.

then i use full path

>python "C:\Python27\Lib\site-packages\pycallgraph\py
callgraph.py"  -- "C:\Users\hello\Downloads\pusher.py"
Traceback (most recent call last):
  File "C:\Python27\Lib\site-packages\pycallgraph\pycallgraph.py", line 3, in 
from .output import Output
ValueError: Attempted relative import in non-package


-- 
https://mail.python.org/mailman/listinfo/python-list