ctypesgen.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/bin/ctypesgen.py - from package: python-ctypesgen

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