See:
http://forums.zenoss.com/viewtopic.php?p=10132
(Google your exact errors and versions for quick solutions!)
Solution is stated as: (verify your versions)
wget
http://downloads.sourceforge.net/zenoss/Zenoss-Plugins-2.0.4.tar.gz
tar zxvf Zenoss-Plugins-2.0.4.tar.gz
cd Zenoss-Plugins-2.0.4
python ./setup.py build
python ./setup.py install
wget
http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c7.tar.gz#md5=dedbf6a4f71cd6deaf13ee885054f16b
tar zxvf setuptools-0.6c7.tar.gz
cd setuptools-0.6c7
python ./setup.py install
zenplugin.py --list-plugins
#
www.Obnosis.com |
http://en.wiktionary.org/wiki/Citations:obnosis |
http://www.urbandictionary.com/define.php?term=obnosis (503)754-4452
Catch the January PLUG HackFest! Kristy Westphal, CSO for the Arizona Department of Economic
Security will provide a one hour
presentation on forensics 1/10/09 at UAT.edu.
> Subject: bitten by python
> From: craigwhite@azapple.com
> To: plug-discuss@lists.plug.phoenix.az.us
> Date: Tue, 9 Dec 2008 09:50:56 -0700
>
> I haven't any experience with python and I'm gathering that what should
> be simple isn't happening for me.
>
> I'm trying to install an ssh monitoring package on a Macintosh. The
> instructions are here (and very simple)
> http://www.zenoss.com/community/docs/howtos/zenoss-plugins/
>
> step 1:
> # python setup.py build
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'package_data'
> running
> build
> running
> build_py
> creating
> build
> creating
> build/lib
> creating
> build/lib/zenoss
> copying zenoss/__init__.py ->
> build/lib/zenoss
> creating
> build/lib/zenoss/plugins
> copying zenoss/plugins/__init__.py ->
> build/lib/zenoss/plugins
> copying zenoss/plugins/common.py ->
> build/lib/zenoss/plugins
> copying zenoss/plugins/darwin.py ->
> build/lib/zenoss/plugins
> copying zenoss/plugins/freebsd5.py ->
> build/lib/zenoss/plugins
> copying zenoss/plugins/linux2.py ->
> build/lib/zenoss/plugins
> running
> build_scripts
> creating
> build/scripts-2.3
> copying and adjusting scripts/zenplugin.py ->
> build/scripts-2.3
> changing mode of build/scripts-2.3/zenplugin.py from 644 to
> 755
>
> Step 2
> python setup.py install
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/distutils/dist.py:227: UserWarning: Unknown distribution option: 'package_data'
> running
> install
> running
> build
> running
> build_py
> running
> build_scripts
> running
> install_lib
> creating /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss
> copying build/lib/zenoss/__init__.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss
> creating /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> copying build/lib/zenoss/plugins/__init__.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> copying build/lib/zenoss/plugins/common.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> copying build/lib/zenoss/plugins/darwin.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> copying build/lib/zenoss/plugins/freebsd5.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> copying build/lib/zenoss/plugins/linux2.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/__init__.py to __init__.pyc
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins/__init__.py to __init__.pyc
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins/common.py to common.pyc
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins/darwin.py to darwin.pyc
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins/freebsd5.py to freebsd5.pyc
> byte-compiling /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/plugins/linux2.py to linux2.pyc
> running
> install_scripts
> copying build/scripts-2.3/zenplugin.py
> -> /System/Library/Frameworks/Python.framework/Versions/2.3/bin
> changing mode
> of /System/Library/Frameworks/Python.framework/Versions/2.3/bin/zenplugin.py to 755
>
> Step 3
> # /System/Library/Frameworks/Python.framework/Versions/2.3/bin/zenplugin.py cpu
> Traceback (most recent call last):
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/bin/zenplugin.py", line 49, in ?
> from zenoss.plugins.common import ApplicationError
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/zenoss/__init__.py", line 14, in ?
>
> __import__('pkg_resources').declare_namespace(__name__)
> ImportError: No module named pkg_resources
>
> I'm stumped
>
> Craig
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
_________________________________________________________________
Send e-mail anywhere. No map, no compass.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss