Nagios LogServer Installation always fails with ImportError:
Posted: Mon Jul 12, 2021 6:34 am
I'm attempting to install Nagios LogServer on to a virgin CentOS 7.2.1511 using
I get this initial error
Then run
And re-run the installation, getting
I've attempted a variety of solutions, for example, re-templating the server, installing python 2.7, running `pip install typing` and then running the installation. This results in
And a prompt to update pip. Upgrading pip either before or after the installation results in
Code: Select all
curl https://assets.nagios.com/downloads/nagios-log-server/install.sh | sh
Code: Select all
Downloading https://files.pythonhosted.org/packages/21/83/308a74ca1104fe1e3197d31693a7a2db67c2d4e668f20f43a2fca491f9f7/click-8.0.1.tar.gz (327kB)
Complete output from command python setup.py egg_info:
error in click setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fy2L78/click/
You are using pip version 8.1.2, however version 21.1.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Code: Select all
pip install --upgrade pip
Code: Select all
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==21.1.3', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 1, in <module>
from typing import List, Optional
ImportError: No module named typing
Code: Select all
Complete output from command python setup.py egg_info:
error in click setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
Code: Select all
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==21.1.3', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 58
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax