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

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