Daily stats issue after upgrade to 4.

From the email inline:

Traceback (most recent call last):
File “/opt/zeek/lib/zeek/python/SubnetTree.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 658, in _load_unlocked
File “”, line 571, in module_from_spec
File “”, line 922, in create_module
File “”, line 219, in _call_with_frames_removed
ImportError: dynamic module does not define module export function (PyInit__SubnetTree)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/opt/zeek/bin/trace-summary”, line 30, in
import SubnetTree
File “/opt/zeek/lib/zeek/python/SubnetTree.py”, line 17, in
_SubnetTree = swig_import_helper()
File “/opt/zeek/lib/zeek/python/SubnetTree.py”, line 16, in swig_import_helper
return importlib.import_module(’_SubnetTree’)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dynamic module does not define module export function (PyInit__SubnetTree)
Command exited with non-zero status 1
0:00.27 real, 0.09 user, 0.00 sys, 0K total memory

A guess is there's a Python 2 versus Python 3 mismatch somewhere (only
Python 3 is intended to be supported now). Try checking symbols in
the SubnetTree module via `nm /opt/zeek/lib/zeek/python/_SubnetTree.so

grep -i "init_"` and it should show "_init_SubnetTree" for Python 2

and "_PyInit__SubnetTree" for Python 3.

Looking at the output of Zeek's `./configure` may also help show
what's happening with the SubnetTree module and Python generally. If
you have other basic info for reproducing like OS/environment, that
can also help.

- Jon

Thanks for this. Turns out I needed the dev package for python3.

James