rebuildlocales.py: 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.py - from package: askbot

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