createmodule.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/share/Modules/bin/createmodule.py - from package: environment-modules

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