![]() |
![]() |
Subject: | zenpack install failure |
Author: | [Not Specified] |
Posted: | 2014-10-09 03:19 |
I exported a tutorial zenpack i created in zenoss 4.2.5
While importing the same into zenoss 5 beta 2, i get a traceback as below.
Also generally, if I were to develop something in zenoss 4.2.5, I would create a zenpack, then modify the directory contents directly. Then later export it for general use.
How can i do development within zenoss 5 for zenpacks
Below is the traceback on installing zenpack.
zenoss@ubuntu:~/ZenPacks$ sudo serviced service run zope zenpack install ZenPacks.train.WeatherUnderground-0.0.1-py2.7.egg
I1009 13:43:11.255207 10405 server.go:332] Connected to the control plane at port 172.30.33.213:4979
I1009 13:43:11.311411 10405 server.go:426] Acquiring image from the dfs...
I1009 13:43:11.311607 10405 server.go:428] Acquired! Starting shell
Trying to connect to logstash server...
Connected to logstash server.
INFO:zen.Relations:Ignoring unresolvable object '
ERROR:zen.ZenPackCMD:Error installing ZenPack /mnt/pwd/ZenPacks.train.WeatherUnderground-0.0.1-py2.7.egg
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 248, in InstallEggAndZenPack
serviceId=serviceId)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 480, in InstallDistAsZenPack
zenPack, deferFileDeletion, existing = transactional_actions()
File "/opt/zenoss/lib/python2.7/site-packages/ZODB/transact.py", line 44, in g
r = f(*args, **kwargs)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 355, in transactional_actions
existing = dmd.ZenPackManager.packs._getOb(packName, None)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 204, in _getOb
return self._objects[id].__of__(self)
AttributeError: 'ZenPack' object has no attribute '__of__'
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 535, in
zp.run()
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 190, in run
serviceId=self.options.serviceId)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 264, in InstallEggAndZenPack
raise e
AttributeError: 'ZenPack' object has no attribute '__of__'
I1009 13:43:24.640150 10405 shell.go:207] Command returned non-zero exit code 3. Container not commited.
< |
Previous how to create custom zenpacks on zenoss5 beta 2 |
Next Where to place common code in a zenpack |
> |