Page 1 of 1

Problems with installation on Debian 9 server

Posted: Tue Nov 22, 2022 10:01 am
by kristino
Hi.

We are having problems with "fullinstall"-script on Debian 9 server.

Our Nagiosxi server is old and runs Nagiosxi version 5.6.14.
The plan is to install Nagisoxi 5.6.14 on a new Debian 9 server, transfer everything, and then upgrade to Debian 11 and a new version of Nagiosxi.

But we can't install Nagiosxi 5.6.14 on our new Debian 9 server. The script exits with an error-message :

...

Downloading https://files.pythonhosted.org/packages ... 2.7.tar.gz (170kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-Oj15rh/pymssql/setup.py", line 54
raise Exception(f"Unsupported environment value {env_name}={val}")
^
SyntaxError: invalid syntax

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Oj15rh/pymssql/


.......


I have made several attempts to upgrade python, pip, pymssql and setuptools, but this seems to just mess up things even more.

So I have now started over with a new minimal Debian 9 install.
The Debian 9 Nagios-repo is in our /etc/apt/sources.list, and the Nagios key is downloaded.
The following programs are installed: ncpa, apt-transport-https, open-vm-tools, snmptt, shellinabox, python-pip, ansible

#Python -V : python 2.7.13
#which python: /usr/bin/python
#pip -V : pip 9.0.1 from /usr/lib/python2.7/dist-packages(python 2.7)

We would really appreciate it if you have some suggestions on how to fix this. Please find the install.log attached.


Regards Kristin

Re: Problems with installation on Debian 9 server

Posted: Tue Nov 22, 2022 6:18 pm
by gormank
There are lots of hits on the egg_info message and below is a link to what's happening at line 54 in setup.py--it looks like it's failing to get some info on the environment it's running under.

https://www.google.com/search?q=%22pyth ... ve&ssui=on

https://github.com/pymssql/pymssql/blob/master/setup.py

Re: Problems with installation on Debian 9 server

Posted: Thu Nov 24, 2022 3:12 am
by kristino
Hi.

Thanks for posting the setup-script. Will have to go through that to try to figure out whats going on