W
W
wexwellencex2022-01-25 14:03:00
ubuntu
wexwellencex, 2022-01-25 14:03:00

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.
61efd8c6531a3179142462.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-01-25
@karabanov

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 | bashand 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 question

Ask a Question

731 491 924 answers to any question