I think you should create a new python version for your CyberPanel system to use, (in another location) it will not depend on the python available on the Centos 7 system (python 2.7.5 is too old). Install a newer version of Python like 3.6.5 or 2.7.15, which can be referenced here:
ImportError: can not import name UnrewindableBodyError
It looks like you're new here. If you want to get involved, click one of these buttons!