submit_to_mgrast.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 Debian possible default full paths are:

/usr/lib/qiime/bin/submit_to_mgrast.py - from package: qiime

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