There is a test at the end of install.sh to make sure that sudo is
passing the right information.
What do you get when you do the folloing:
$ sudo python -c 'import os; print os.environ["ZENHOME"]'
-Eric
Manoj Sonawane wrote:
Looks like i have it.
[EMAIL PROTECTED]:~/zenoss-0.21.1$ ls -l $ZENHOME/lib/python/Globals.py
-rwxr-xr-x 1 zenoss users 1615 May 29 21:21
/usr/local/zenoss/lib/python/Globals.py
I am reading about sudo . my sudoers has following entry (can anyone
share there sudores ??)
# Defaults
Defaults env_keep = "PYTHONPATH ZENHOME"
#, !lecture,tty_tickets,!fqdn
running zenping using root doesn't help too
\
Thanks for your help. once I had it running i will create document on
ubuntu and send to this list.
Eric Newton wrote:
Good news about mysql!
It is difficult to give you clear debugging instructions for this
problem.
You should have a $ZENHOME/lib/python/Globals.py. Do you?
If you do not, try deleting $ZENHOME and re-running install.sh.
-Eric
Manoj Sonawane wrote:
I compiled mysql and python from source and rebuild .
now mysql.so behaves nicely but zenping and zensyslog do not.
Daemon: zenping starting...
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenStatus/zenping.py", line 22, in ?
import Globals # make zope imports work
ImportError: No module named Globals
Daemon: zensyslog starting...
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenEvents/zensyslog.py", line 10,
in ?
import Globals
ImportError: No module named Globals
- Manoj
Eric Newton wrote:
Make sure that /usr/local/mysql/bin lives in your path before other
mysql installations on your machine. Make sure that
/usr/local/mysql/lib is is in /etc/ld.so.conf before any other
mysql installed on the machine.
Try to remove any existing mysql on your machine (if possible)
before installing mysql5.0 to try to eliminate any conflict.
-Eric
Manoj Sonawane wrote:
python looks fine
ls -l $ZENHOME/bin/python
lrwxrwxrwx 1 zenoss users 24 2006-07-26 23:44
/usr/local/zenoss/bin/python -> /usr/local/bin/python2.4
mysql binding does not look fine.
[EMAIL PROTECTED]:~$ /usr/local/bin/python2.4 -c 'import MySQLdb'
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/local/zenoss/lib/python/MySQLdb/__init__.py", line 27,
in ?
import _mysql
ImportError: /usr/local/zenoss/lib/python/_mysql.so: undefined
symbol: __pure_virtual
I downloaded and installed mysql in /usr/local/mysql
Thanks for the help.
Manoj
Eric Newton wrote:
Comments below:
Manoj Sonawane wrote:
I tried compiling from sources, seems not working for me.
Make sure that:
$ ls -l $ZENHOME/bin/python
Points to the one you just installed (probably
/usr/local/bin/python2.4)
Following are the problems,
[EMAIL PROTECTED]:~$ zenping start
starting...
Traceback (most recent call last):
File "/usr/local/zenoss/Products/ZenStatus/zenping.py", line
22, in ?
import Globals # make zope imports work
ImportError: No module named Globals
This indicates a bad install. The only thing I can advise is:
$ zenoss stop
$ cd zenossinst
$ rm -rf build
$ rm -rf $ZENHOME
$ ps auxww | grep python
Kill anything that looks zenoss related. Then re-run
install.sh. Test the mysql bindings:
$ PYTHONPATH=$ZENHOME/lib/python /usr/local/bin/python2.4 -c
'import MySQLdb'
I don't have Ubuntu 5.10 to test with (although I could get it).
I think someone around here got it working fine on Ubuntu 6.06.
-Eric
on browser clicking on Devices (zport/dmd/Devices) produces
*Error Type: ImportError*
*Error Value: /usr/local/zenoss/lib/python/_mysql.so: undefined
symbol: __pure_virtual*
here is more info
env
ZENHOME=/usr/local/zenoss
PYTHONPATH=/usr/local/zenoss/lib/python
PATH=/usr/local/zenoss/bin:/usr/local/mysql/bin:/usr/local/zenoss/bin:/usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
[EMAIL PROTECTED]:~$ gcc --version
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
python on ubuntu
[EMAIL PROTECTED]:~$ /usr/bin/python
Python 2.4.2 (#2, Sep 30 2005, 21:19:01)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
newly compiled python
[EMAIL PROTECTED]:~$ /usr/local/bin/python
Python 2.4.3 (#1, Jul 26 2006, 05:52:20)
[GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
Eric Newton wrote:
Hi,
I think this is related to your current C compiler and the
compiler originally used to build the python on your box.
You may want to try installing python from python.org, from
sources. Then delete the build directory in zenossinst and
$ZENHOME, and reinstall.
-Eric
Manoj Sonawane wrote:
New guy in zenoss town! been a nagios man all along!
Must say looks good and much easy to setup/install than
nagios. took me only 2 tries and was able to install. good job
Few problems i still have on Ubuntu 5.10 "Breezy Badger"
zope gives me following error on few links
*Error Type: ImportError*
*Error Value: /usr/local/zenoss/lib/python/_mysql.so:
undefined symbol: __pure_virtual
I searched zenoss user list and found out that I may need to
rebuild mysql.so , did so using,
*
rm -rf build
python setup.py install --install-lib=$ZENHOME/lib/python
--install- scripts=$ZNEHOME/bin
But still not working.
I am new to zope and python. Please help
*
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users