Issue with python MarkupSafe module on install

Provider: Virtual Machine under VMWare Workstation 15

Virtualization Type: VMWare

System: Centos 7.7 & Ubuntu 18.04

Installation option:

OLS or Enterprise?
OLS
Installing from official server or mirror server?
official
Install Memcached extension for PHP?
N/A
Install LiteSpeed Memcached?
N/A
Install Memcached?
N/A
Install Redis extension for PHP?
N/A
Install Redis?
N/A

Problem:

When I try to install CyberPanel under VMWare minimal CentOS 7 or Ubuntu 18.04 basic server, install fails. On CentOS 7 it show following error message

ERROR: Command errored out with exit status 1:
 command: /usr/local/CyberPanel/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fg156h2x/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fg156h2x/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\\r\

‘"’"’, ‘"’"’
‘"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base /tmp/pip-install-fg156h2x/MarkupSafe/pip-egg-info
cwd: /tmp/pip-install-fg156h2x/MarkupSafe/
Complete output (5 lines):
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-fg156h2x/MarkupSafe/setup.py”, line 3, in
from setuptools import setup, Extension, Feature
ImportError: cannot import name ‘Feature’
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

command failed, exiting…

I tried re-install on clean Ubuntu 18.04 VM but same issue occurred

I don’t think this is caused by VMWare enviroment but I might be wrong.

Soon after I’ve posted this someone else also encountered same issue.

I’ve tried to increase MarkupSafe module version in requirements.txt one at the time.
When I’ve got to 0.19 command /usr/local/CyberPanel/bin/pip3 install --ignore-installed -r requirements.txt completes successfully.

I am guessing the script could be uploaded with a bug, I am going to try a mirror

fixed , please try again

Traceback (most recent call last):
File “install.py”, line 2388, in
main()
File “install.py”, line 2342, in main
checks.installAcme()
File “install.py”, line 2197, in installAcme
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
File “install.py”, line 207, in call
res = subprocess.call(shlex.split(command))
File “/usr/lib64/python3.6/subprocess.py”, line 287, in call
with Popen(*popenargs, **kwargs) as p:
File “/usr/lib64/python3.6/subprocess.py”, line 729, in init
restore_signals, start_new_session)
File “/usr/lib64/python3.6/subprocess.py”, line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.acme.sh/acme.sh’: ‘/root/.acme.sh/acme.sh’
Oops, something went wrong…