Error in Python application - IndexError: string index out of range Traceback | | Gotmyhost

Currently, all cPanel accounts are experiencing the following error in the Python application on our server:

Error in Python application - IndexError: string index out of range Traceback | | Gotmyhost

When checking CloudLinux Manager, it appears that it is not installed, but when trying to install it, the following error appears:

Error in Python application - IndexError: string index out of range Traceback | | Gotmyhost
Error in Python application - IndexError: string index out of range Traceback | | Gotmyhost
Error in Python application - IndexError: string index out of range Traceback | | Gotmyhost
IndexError: string index out of range Traceback (most recent call last):  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/cl_selector.py", line 193, in run    self._opts = self._parse_args(argv)                 ^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/cl_selector.py", line 554, in _parse_args    status, data = parse_cloudlinux_selector_opts(                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/cl_selector_arg_parse.py", line 326, in parse_cloudlinux_selector_opts    selector_status = list(lib.get_selector_status().values())[0]                           ^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/selectorlib.py", line 487, in get_selector_status    return self.get_python_selector_status()           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/selectorlib.py", line 322, in get_python_selector_status    if PythonManager().selector_enabled:       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/baseclselect/selector_manager.py", line 38, in selector_enabled    return self.cfg.selector_enabled           ^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/baseclselect/config.py", line 143, in selector_enabled    return self.Cfg.selector_enabled and bool(self.pkg.installed_versions)                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/baseclselect/pkgmanager.py", line 116, in installed_versions    self._versions_info = self._scan_interpreter_versions()                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpython/pkgmanager.py", line 64, in _scan_interpreter_versions    return scan_python_versions()           ^^^^^^^^^^^^^^^^^^^^^^  File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpython/__init__.py", line 58, in scan_python_versions    maj_ver = f'{maj_ver[0]}.{maj_ver[1:]}'                 ~~~~~~~^^^IndexError: string index out of range

Environment

  • Python Selector
  • CloudLinux Manager

Solution

The fix for this issue has been released as lvemanager-7.11.24-1.

You can apply the fix using:

yum update lvemanager 

Leave a Reply

Your email address will not be published. Required fields are marked *