[Zeek] Anyone using Bro doctor plugin?
Pierre LALET
pierre at droids-corp.org
Tue Mar 24 04:13:04 PDT 2020
Hi there,
> Traceback (most recent call last):
> File "/opt/zeek/lib/zeek/plugins/packages/bro-doctor/doctor.py", line 596, in cmd_custom
> results.ok = f() and results.ok
> File "/opt/zeek/lib/zeek/plugins/packages/bro-doctor/doctor.py", line 457, in check_connection_distribution
> variance = reduce(lambda var, cnt: var + (cnt - mean)**2, nodes.values(), 0) / len(nodes)
> NameError: name 'reduce' is not defined
This particular error may be related to a Python 2 / Python 3 issue:
reduce() was a built-in in Python 2 and is part of the functools
module in Python3.
Hope this helps,
Pierre
More information about the Zeek
mailing list