thecodeteam / nagios-unity

Nagios plugin for monitoring Unity system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this work in Python 2.6?

douglasawh opened this issue · comments

Any thoughts on the following other than potential Python 2.6 issue?

/usr/bin/nagios-unity -help Traceback (most recent call last): File "/usr/bin/nagios-unity", line 7, in <module> from nagiosunity.cli.client import main File "/usr/lib/python2.6/site-packages/nagiosunity/cli/client.py", line 54, in <module> from nagiosunity import commands File "/usr/lib/python2.6/site-packages/nagiosunity/commands/__init__.py", line 47 commands_dict = {cmd.name: cmd for cmd in COMMANDS} ^ SyntaxError: invalid syntax

I have confirmed this works on python 2.7.12 via pip install

Nagios-unity doesn’t support the old python2.6 currently. The mainstream python version is now 2.7 and 3.5

Additionally, it’s major dependency, storops, doesn’t support python2.6 either.

I would suggest installing the pyenv and running the py27 in its sandbox.

I know what you are saying, but CentOS 6 still uses 2.6. Anyway, I no longer work for Nagios, so as far as I'm concerned this can be closed as not fixing or however the project deals with that. Back in early February, I believe I basically told the user on the Nagios forums they'd need 2.7.

Closing it, will not support python2.6.