Sep 4, 2012 3:01 PM
Problem Installing zenpack
-
Like (0)
I am having problem in installing zenpack. I am getting the following error.
$zenpack --install ZenPacks.Company.RTCC-4.0-py2.6.egg/
2012-09-04 14:39:01,810 INFO zen.HookReportLoader: loading reports from:/opt/nmsZenoss/zenoss/Products/ZenPacks.Company.RTCC-4.0-py2.6.egg/reports
2012-09-04 14:39:01,863 ERROR zen.ZenPackCmd: zenpack command failed
Traceback (most recent call last):
File "/opt/nmsZenoss/zenoss/Products/ZenUtils/zenpack.py", line 406, in <module>
zp.run()
File "/opt/nmsZenoss/zenoss/Products/ZenUtils/zenpack.py", line 155, in run
self.install(packName)
File "/opt/nmsZenoss/zenoss/Products/ZenUtils/zenpack.py", line 249, in install
zp.install(self.app)
File "/opt/nmsZenoss/zenoss/Products/ZenModel/ZenPack.py", line 251, in install
loader.load(self, app)
File "/opt/nmsZenoss/zenoss/Products/ZenModel/ZenPackLoader.py", line 287, in load
registerSkin(app.zport.dmd, skinsDir)
File "/opt/nmsZenoss/zenoss/Products/ZenUtils/Skins.py", line 59, in registerSkin
addDirectoryViews(skinstool, path, dict(__name__=root))
File "/opt/nmsZenoss/python/lib/python2.6/site-packages/Products.CMFCore-2.2.0_alpha-py2.6.egg/Products/CMFCore/DirectoryView.py", line 621, in addDirectoryViews
raise ValueError('Not a registered directory: %s' % reg_key)
ValueError: Not a registered directory:ZenPacks.Company.RTCC:/opt/nmsZenoss/zenoss/Products/ZenPacks.Company.RTCC-4.0-py2.6.egg/skins
I searched on the zenoss forums and found a similar post related to this issue(thread/16930). I also made the changes in __init__.py as told in the discussion ( register the skins directory ) but still I am getting the same error.
when I tried to execute __init__.py from command line I am getting the error at the following line (The line in bold)
skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
from Products.CMFCore.DirectoryView import registerDirectory
if os.path.isdir(skinsDir):
registerDirectory(skinsDir, globals())
Its giving the error OSError: [Errno 2] No such file or directory: '/opt/nmsZenoss/zenoss/ZenPacks/ZenPacks.Company.RTCC-4.0-py2.6.egg/ZenPacks/Company/RTCC/__main__/skins'
So I try to print the value in skinsDir its /opt/nmsZenoss/zenoss/ZenPacks/ZenPacks.Company.RTCC-4.0-py2.6.egg/ZenPacks/Company/RTCC/skins
I am not able to figure out how "__main__" got inserted in between
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||