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
_______________________________________________
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