You should change the first line to
#!/usr/bin/env python3
This way it uses the Python 3 installation from checkmk.
And make sure it is a Python 3 script.
You should change the first line to
#!/usr/bin/env python3
This way it uses the Python 3 installation from checkmk.
And make sure it is a Python 3 script.