weasyprint: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/weasyprint - from package: weasyprint

You may install the required package with command yum install {package}
Error in other languages:
weasyprint: bevel nie gevind nie
weasyprint: comandă negăsită
weasyprint: comando não encontrado
weasyprint: commande introuvable
weasyprint: command not found
weasyprint: käsku ei ole
weasyprint: không tìm thấy lệnh
weasyprint: komanda nerasta
weasyprint: Kommando nicht gefunden.
weasyprint: kommandot finns inte
weasyprint: komut yok
weasyprint: nie znaleziono polecenia
weasyprint: níor aimsíodh an t-ordú
weasyprint: no se encontró la orden
weasyprint: no s'ha trobat l'ordre
weasyprint: opdracht niet gevonden
weasyprint: parancs nem található
weasyprint: perintah tidak ditemukan
weasyprint: príkaz nenájdený
weasyprint: příkaz nenalezen
weasyprint: команда не найдена
weasyprint: командата не е открита
weasyprint: 命令找不到
weasyprint: コマンドが見つかりません