query.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/viewvc/bin/mod_python/query.pyc - from package: viewvc

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