rebuildlocales.pyc: 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/lib/python2.6/site-packages/askbot/bin/rebuildlocales.pyc - from package: askbot

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