pytest profiling-svg doesn't work on python 2.7
See original GitHub issuepytest --profiling work perfectly on python2.7 but the option --profiling-svg doesn’t work. The profiling report is generated but the svg isn’t . The error trace is :
test/test_standalone.py ..sh: 2: dot: not found Traceback (most recent call last): File "/home/aurelien/virtual_env/hotcountenv/bin/gprof2dot", line 11, in <module> sys.exit(main()) File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3319, in main dot.graph(profile, theme) File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3065, in graph arrowsize = "%.2f" % theme.edge_arrowsize(weight), File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3093, in edge self.attr_list(attrs) File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3110, in attr_list self.id(value) File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3123, in id self.write(s) File "/home/aurelien/virtual_env/hotcountenv/lib/python2.7/site-packages/gprof2dot.py", line 3147, in write self.fp.write(s) IOError: [Errno 32] Broken pipe
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
conda install graphviz
fixed this for me.I was able to just run everything manually to get around this:
Note on OSX I had to first
brew install graphviz
to get thedot
cli arg.