OMD-Labs 4.x comes with some changes which might break existing setups.
OMD uses Python 3 now. All internal scripts have been migrated but it might
break other user scripts still using python 2.
The following changes have been made:
~/lib/python
contains python3 library files~/lib/python2
contains python2 library filesPYTHONPATH
is python 3PYTHONPATH=$OMD_ROOT/lib/python2:$OMD_ROOT/local/lib/python2 /usr/bin/python2 yourscript.py
The update does not touch your local/lib/python
. So if it contains python2 libraries, you
should move them to local/lib/python2
.
See Whats new in Grafana 7 for more information.