bitten by python

Craig White craigwhite at azapple.com
Tue Dec 9 09:50:56 MST 2008


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




More information about the PLUG-discuss mailing list