Werk #16228: Enable update as site user due incompatible python versions
Component | Site management | ||||||
Title | Enable update as site user due incompatible python versions | ||||||
Date | Nov 9, 2023 | ||||||
Level | Trivial Change | ||||||
Class | Bug Fix | ||||||
Compatibility | Compatible - no manual interaction needed | ||||||
Checkmk versions & editions |
|
This werk is relevant for you in case you've been using omd -V {version} update as site user. Due to the update of the Python version from 3.11.2 to 3.11.5 with 2.2.0p13, we needed to introduce a fix in order to avoid the following issue:
Traceback (most recent call last):
File "/omd/versions/2.2.0p13.cee/bin/omd", line 60, in <module>
import omdlib.main
File "/omd/versions/2.2.0p13.cee/lib/python3/omdlib/main.py", line 36, in <module>
import random
File "/omd/versions/2.2.0p13.cee/lib/python3.11/random.py", line 49, in <module>
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: /omd/versions/2.2.0p13.cee/lib/python3.11/lib-dynload/math.cpython-311-x86_64-linux-gnu.so: undefined symbol: _PyModule_Add
However, this fix introduced another issue with the release of 2.2.0p13, that's why we had to withdraw 2.2.0p13 and release 2.2.0p14 which addressed both issues.