You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RuntimeError: maximum recursion depth exceeded in cmp #3
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 ''
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
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.
Activity
akme commentedon Apr 12, 2018
made some changes, could u please test?
a-khakimov commentedon Apr 15, 2018
I did not make any changes. Just downloaded repo and ran command from readme.
I use
Python 2.7.12akme commentedon Apr 15, 2018
I did some changes, pull them and test if it fails, please
a-khakimov commentedon Apr 15, 2018
unfortunately nothing has changed
same mistake
widgetii commentedon Apr 18, 2018
Seems that I have same mistake also, script just from git
I use Centos 4.9 in Docker environment
akme commentedon Apr 21, 2018
Could you please try to set higher limit for recursion?
Like this:
sys.setrecursionlimit(15000)
widgetii commentedon Apr 23, 2018
I tried to add, but still same error
Here is my dump of lsof output
lsof.zip
powerpxe commentedon May 12, 2018
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.