So, I got to thinking, zendmd shows the right path. zenpack shows the right 
path. I noted this line in my traceback:


Code:

  File "/home/zenoss/Products/ZenModel/ZenPack.py", line 706, in getDistribution
    return pkg_resources.get_distribution(self.id)




This tells me it's not finding the egg. But if I go into zendmd:

Code:

[EMAIL PROTECTED] ZenModel]$ zendmd
Welcome to zenoss dmd command shell!
use zhelp() to list commands
>>> import pkg_resources
>>> pkg_resources.get_distribution('ZenPacks.zenoss.HttpMonitor')
ZenPacks.zenoss.HttpMonitor 2.0.0 
(/home/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg)




It finds it. What could be going on?

So, I modified  /home/zenoss/Products/ZenModel/ZenPack.py by adding this line 
right before the call to get distribution:

Code:

        log.exception('sys.path = %s' % sys.path)




And what do I see in my event.log when i try to go the ZenPacks tab or add a 
DataSource? Why this:


Code:

2008-06-19T11:55:42 ERROR zen.ZPLoader sys.path = ['/home/zenoss/lib/python', '/
home/zenoss/lib/python', '/usr/lib/zope/lib/python/Zope2/Startup', '/usr/lib/zop
e/lib/python', '/usr/lib/python24.zip', '/usr/lib/python2.4/site-packages', '/us
r/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
 '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages/PIL']




So it appears zope isn't getting the right sys.path -- how do I fix this?




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

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

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



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to