oec-scripts icon indicating copy to clipboard operation
oec-scripts copied to clipboard

oec service trying to call actionExecutor.py using python2 with missing modules when python3 works. No env in actionExecutor.py.

Open ipaqmaster opened this issue 3 years ago • 1 comments

Should actionExecutor.py have an explicit python env set at the top of the file?

In my case I cannot execute remote Opsgenie2Nagios commands because actionExecutor.py doesn't specify a hashbang at the start of the file to pick a specific interpreter

ipaqmaster avatar Dec 15 '22 06:12 ipaqmaster

According to https://github.com/opsgenie/oec/issues/49 it seems the service is the one targeting python and relying on the system default. It is ingoring any mention of #!/usr/bin/python3 at the top of the file. Seems to be an outstanding problem.

ipaqmaster avatar Dec 15 '22 06:12 ipaqmaster