Failed installation - python modules

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
glenlopez16
Posts: 14
Joined: Fri Aug 16, 2013 9:28 am

Failed installation - python modules

Post by glenlopez16 »

Hi,

Please assist me what to do cause im installing nagios network analyzer , unfortunately, it was failed on python modules.

Please see attached file.

Thanks a lot.
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed installation - python modules

Post by sreinhardt »

Apparently this log did not capture everything. Could you try reposting or make sure that it did capture the output where it failed please?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Failed installation - python modules

Post by rhassing »

The installation I was trying to do also fails at installing python
It looks like the python installation needs X server?

Running 'python_modules'...
/usr/bin/easy_install: line 3: __requires__: command not found
import: unable to open X server `'.
/usr/bin/easy_install: line 5: from: command not found
/usr/bin/easy_install: line 8: syntax error near unexpected token `newline'
/usr/bin/easy_install: line 8: ` sys.exit('

I was trying to install: nagiosna-2014r1.0.tar.gz


Best regards,
Rob Hassing
Rob Hassing
Image
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed installation - python modules

Post by sreinhardt »

Easy_install certainly should not need any X libraries, nor should NNA to my knowledge. What OS, architecture, and version are you installing on? On this OS, do you have a gnome or kde frontend already?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Failed installation - python modules

Post by rhassing »

DISTRO INFO:
CentOS
5.9
i686

X is not installed on this server, so there is no frontend installed as well.

How can I do an Easy_install?

[root@mona nagiosna]# find ./ -name "*instal*"
./fullinstall
./nagiosna/basedir/html/application/views/setup/install.php
./nagiosna/basedir/html/application/controllers/install.php
./libinstall.sh
[root@mona nagiosna]#

I can only find the fullinstall script.
Rob Hassing
Image
pro100Dino
Posts: 1
Joined: Wed Oct 09, 2013 5:14 am

Re: Failed installation - python modules

Post by pro100Dino »

Was trying to install Nagios Network Analyzer and i got this
You do not have the required permissions to view the files attached to this post.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Failed installation - python modules

Post by rhassing »

I changed some packets, removed setuptools-0.7.2-7.el5.noarch.rpm and installed python-setuptools-0.6c5-2.el5

This got me a bit further, but still no full installation :-(


[root@mona-pool1 nagiosna]# ./fullinstall

Code: Select all

Nagios Network Analyzer Installation
====================================
DATE: Wed Oct  9 17:21:41 CEST 2013

DISTRO INFO:
CentOS
5.9
i686

Running 'prereqs'...
prereqs step already completed - skipping
Running 'sourceguardian'...
sourceguardian step already completed - skipping
Running 'timezone'...
timezone step already completed - skipping
Running 'rrdtool'...
rrdtool step already completed - skipping
Running 'nfdump'...
nfdump step already completed - skipping
Running 'python_modules'...
Searching for IPy
Reading http://cheeseshop.python.org/pypi/IPy/
Reading https://github.com/haypo/python-ipy
Reading http://cheeseshop.python.org/pypi/IPy/0.81
Best match: IPy 0.81
Downloading https://pypi.python.org/packages/source/I/IPy/IPy-0.81.tar.gz
Processing IPy-0.81.tar.gz
Running IPy-0.81/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AfLtpp/IPy-0.81/egg-dist-tmp-QPmvpz
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 1670, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 1659, in with_ei_usage
    return f()
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 1674, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 471, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 655, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 930, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.4/site-packages/setuptools/command/easy_install.py", line 919, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line 26, in run_setup
    DirectorySandbox(setup_dir).run(
  File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line 63, in run
    return func()
  File "/usr/lib/python2.4/site-packages/setuptools/sandbox.py", line 29, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 31
    with open('README') as fp:
            ^
SyntaxError: invalid syntax

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.

The step that failed was: 'python_modules'
[root@mona-pool1 nagiosna]#
Rob Hassing
Image
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Failed installation - python modules

Post by rhassing »

pro100Dino wrote:Was trying to install Nagios Network Analyzer and i got this
This looks like a dns problem?
Can you ping (or in some other way reach) this machine?
Rob Hassing
Image
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Failed installation - python modules

Post by sreinhardt »

I would agree pro100's issue appears to be dns\internet connection issues.

rhassing, we have determined that there are some rhel\cent 5.x issues on install that need to be resolved. This is being worked on as I type, some are our install issues, and some are dependencies that have been updated and do not play nice with python 2.4. We will post back with an update and resolve for you shortly.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Failed installation - python modules

Post by rhassing »

sreinhardt wrote:rhassing, we have determined that there are some rhel\cent 5.x issues on install that need to be resolved. This is being worked on as I type, some are our install issues, and some are dependencies that have been updated and do not play nice with python 2.4. We will post back with an update and resolve for you shortly.
Hello Spenser,
Any news on the install issues?

Brgds,
Rob
Rob Hassing
Image
Locked