[zenoss-users] Re: Asterisk Zenpack - Python Import Errors

AlecIs mqb at adelphia.net
Tue Oct 21 21:11:16 EDT 2008


Sorry for the delay in getting back . . . 

My distro is SuSE, so it uses $HOME/.bashrc, not .bash_profile

Instead of explicitly calling out the four environment variables you show, the .bashrc for the zenoss user sources /usr/local/zenoss/scripts/setenv.sh.  That script seems to set the variables, as well as doing some other stuff.

The zenoss user does end up with values for the environment variables you list, but they're different (my installation was put in the /usr/local tree, not opt):


Code:

$ZENHOME = /usr/local/zenoss

$PATH = /usr/local/zenoss/bin:/usr/local/zenoss/common/sbin:/usr/local/zenoss/python/bin:/usr/local/zenoss/mysql/bin:/usr/local/zenoss/zenoss/bin:/usr/local/zenoss/common/bin:/sbin:/usr/sbin:/usr/local/sbin:/sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

$PYTHONPATH = /usr/local/zenoss/lib/python

$LD_LIBRARY_PATH = /usr/local/zenoss/lib/python








-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=26642#26642

-------------------- m2f --------------------





More information about the zenoss-users mailing list