Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scripts with python 3.7 #208

Open
hardwareadictos opened this issue Apr 27, 2021 · 0 comments
Open

Use scripts with python 3.7 #208

hardwareadictos opened this issue Apr 27, 2021 · 0 comments
Assignees
Labels

Comments

@hardwareadictos
Copy link

hardwareadictos commented Apr 27, 2021

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 :)

@ableev ableev added the bug label Dec 21, 2022
@ableev ableev self-assigned this Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants