Answer the question
In order to leave comments, you need to log in
Installing a telegram bot on zabbix gives an error, how to fix it?
Good afternoon, I installed a telegram bot on zabbix 5.4.0 through a script and it gives an error during the test, please tell me how to fix it. Virtual server ubuntu server
From the error, I realized that he could not find the directory, but that's all I understood.
Answer the question
In order to leave comments, you need to log in
I'll try to guess. The system is fresh and it has only python3, and the script was written a long time ago, even under python2, which is indicated in the shebang.
Replace python with python3 in the shebang, you may be lucky and the script will run, if not, you will either have to fix incompatibilities or install python2
If you need to install python2, then use pyenv (do not forget to install the libraries ).
To install pyenv curl https://pyenv.run | bash
and follow the instructions.
Install Python pyenv install 2.7.18
Create virualenv and write the path to the interpreter in the shebang.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question