openstack-generate-pot: 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 Debian possible default full paths are:

/usr/bin/openstack-generate-pot - from package: python-openstack-doc-tools

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