lsofgraph-python
lsofgraph-python copied to clipboard
RuntimeError: maximum recursion depth exceeded in cmp
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse file system /run/user/1000/doc
Output information may be incomplete.
Traceback (most recent call last):
File "lsofgraph.py", line 183, in <module>
print_graph(procs, conns)
File "lsofgraph.py", line 168, in print_graph
if files[0]['proc'] != files[1]['proc']:
RuntimeError: maximum recursion depth exceeded in cmp
Error: <stdin>: syntax error in line 295 near ''
made some changes, could u please test?
I did not make any changes. Just downloaded repo and ran command from readme.
I use Python 2.7.12
I did some changes, pull them and test if it fails, please
unfortunately nothing has changed same mistake
Seems that I have same mistake also, script just from git
I use Centos 4.9 in Docker environment
File "lsofgraph.py", line 183, in <module>
print_graph(procs, conns)
File "lsofgraph.py", line 168, in print_graph
if files[0]['proc'] != files[1]['proc']:
RuntimeError: maximum recursion depth exceeded in cmp
Error: <stdin>: syntax error in line 15
Could you please try to set higher limit for recursion? Like this: sys.setrecursionlimit(15000)
Does not help adding a line sys.setrecursionlimit(15000). Python 2.7.12 Linux Mint 18.3. Use ssh -l root 11.10.23.200 'lsof -n -F' | python lsofgraph.py | unflatten -l 1 -c 6 | dot -T jpg > /tmp/a.jpg
Python answer:
File "lsofgraph.py", line 184, in
print_graph(procs, conns)
File "lsofgraph.py", line 169, in print_graph
if files[0]['proc'] != files[1]['proc']:
RuntimeError: maximum recursion depth exceeded in cmp
Error: : syntax error in line 72 near ''
ssh is connected to the kernel 2.4.32, lsof version 4.77.