There is a wrong link set when cloning the perfume-frontend in the bash script.
# Clone perfume frontend repository echo ===== CLONING REPOSITORY ===== hg clone https://bitbucket.org/bestchai/perfume-frontend
It should be replaced with git clone https://github.com/ModelInference/perfume-frontend
Problem 2
Finally, there is an error saying that it can't find the Cheetah.Template in the MakePython.py
`import subprocess
from Cheetah.Template import Template
def compile_templates():
parameters = {"commitSha":getRevision()}
with open('./template/index_template.html', 'r') as templatefile:
template = templatefile.read()
compiled_template = Template(template, searchList=parameters).str()
with open('index.html', 'w') as postfile:
postfile.write(compiled_template)
This is probably due to using the Cheetah python library which is very outdated and doesn't work with python3+ (it can't even be installed with pip due to many errors). It should be changed to a fork of Cheetah called Cheetah3 which is more modern.
Thanks for your interest. Unfortunately, the project is 10 years old now and is no longer supported. If you'd be willing to submit a PR with fixes, I can try to reproduce on my end and merge it in.
Problem 1
There is a wrong link set when cloning the perfume-frontend in the bash script.
# Clone perfume frontend repository echo ===== CLONING REPOSITORY ===== hg clone https://bitbucket.org/bestchai/perfume-frontend
It should be replaced with git clone https://github.com/ModelInference/perfume-frontendProblem 2
Finally, there is an error saying that it can't find the Cheetah.Template in the MakePython.py `import subprocess from Cheetah.Template import Template
def compile_templates(): parameters = {"commitSha":getRevision()} with open('./template/index_template.html', 'r') as templatefile: template = templatefile.read() compiled_template = Template(template, searchList=parameters).str() with open('index.html', 'w') as postfile: postfile.write(compiled_template)
def getRevision(): p = subprocess.Popen(['hg', 'identify'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) sha, err = p.communicate() sha = sha.split() return sha[0][:-1]
compile_templates()`
This is probably due to using the Cheetah python library which is very outdated and doesn't work with python3+ (it can't even be installed with pip due to many errors). It should be changed to a fork of Cheetah called Cheetah3 which is more modern.