ableev / ableev/Zabbix-in-Telegram

Use scripts with python 3.7

Offen
#208 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @ableev Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
815
Forks
236
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Could be a noobish question, but iḿ trying to implement this plugin on a docker-compose Zabbix deploy, made all dockerfile modifications for installing python 3.7 inside the container, as official zabbix server image comes with ubuntu 20.04, there is no way of using python27 (the python version i was using on my old raspberry pi install).

How can i execute those scripts with python 3.7?

Getting this with pyrhon 3.7:

File "/usr/lib/zabbix/alertscripts/zbxtg.py", line 307
file_img = "{0}/{1}.png".format(self.tmp_dir,
^
TabError: inconsistent use of tabs and spaces in indentation

I have both version on my old pi and it works fine with 2.7, having the same issue if i invoke the script with python 3.7 binary.

Thanks in advance :)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.