zenoss / ZenPacks.zenoss.Microsoft.Windows

Microsoft Windows ZenPack
Other
15 stars 19 forks source link

Cannot install this Zenpack #151

Closed smakked closed 10 years ago

smakked commented 10 years ago

Hi Guys

Trying to install this i get this error below

CODE:

[root@nit-monitoring zen]# zenpack --link --install ZenPacks.zenoss.Microsoft.Windows 2014-04-09 07:53:27,735 INFO zen.ZPLoader: Loading /zen/ZenPacks.zenoss.Microsoft.Windows/ZenPacks/zenoss/Microsoft/Windows/objects/objects.xml 2014-04-09 07:53:30,614 ERROR zen.ZenPackCMD: Error installing ZenPack ZenPacks.zenoss.Microsoft.Windows Traceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 247, in InstallEggAndZenPack fromUI=fromUI) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 477, in InstallDistAsZenPack zenPack, deferFileDeletion, existing = transactional_actions() File "/opt/zenoss/lib/python/ZODB/transact.py", line 44, in g r = f(_args, *_kwargs) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 436, in transactional_actions zenPack.install(dmd) File "/zen/ZenPacks.zenoss.Microsoft.Windows/ZenPacks/zenoss/Microsoft/Windows/init.py", line 89, in install super(ZenPack, self).install(app) File "/opt/zenoss/Products/ZenModel/ZenPack.py", line 240, in install loader.load(self, app) File "/opt/zenoss/Products/ZenModel/ZenPackLoader.py", line 106, in load importer.loadObjectFromXML(xmlfile=f) File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 481, in loadObjectFromXML parser.parse(self.infile) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 312, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 155, in startElement obj = self.createObject(attrs) File "/opt/zenoss/Products/ZenRelations/ImportRM.py", line 281, in createObject klass = importClass(attrs.get('module'), attrs.get('class')) File "/opt/zenoss/Products/ZenUtils/Utils.py", line 429, in importClass raise ex ImportError: cannot import name create_enum_info 2014-04-09 07:53:30,623 ERROR zen.ZenPackCmd: zenpack command failed Traceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in zp.run() File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 164, in run fromUI=self.options.fromui) File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 263, in InstallEggAndZenPack raise e ImportError: cannot import name create_enum_info

Running Zenoss 4.2.4, i did have it working till i accidentaly removed it and now i cannot install it again

cluther commented 10 years ago

What version do you see this on? It looks like you're installing from the source directory, so the version isn't tagged in there.

smakked commented 10 years ago

yes you are correct, wrong error below is the zenpack install zenpack --install ZenPacks.zenoss.Microsoft.Windows-_.egg ERROR:zen.ZenPackCmd:zenpack command failed Traceback (most recent call last): File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 486, in zp = ZenPackCmd() File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 36, in init CmdBase.init(self, noopts) File "/opt/zenoss/Products/ZenUtils/CmdBase.py", line 108, in init zcml.load_site() File "/opt/zenoss/lib/python/Zope2/App/zcml.py", line 46, in load_site _context = xmlconfig.file(site_zcml) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 646, in file include(context, name, package) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 774, in finish actions = self.handler(context, _args) File "/opt/zenoss/lib/python/OFS/metaconfigure.py", line 46, in loadProducts xmlconfig.include(_context, zcml, package=product) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 548, in include processxmlfile(f, context) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 380, in processxmlfile parser.parse(src) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 109, in parse xmlreader.IncrementalParser.parse(self, source) File "/opt/zenoss/lib/python/_xmlplus/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 216, in feed self._parser.Parse(data, isFinal) File "/opt/zenoss/lib/python/_xmlplus/sax/expatreader.py", line 364, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/opt/zenoss/lib/python/zope/configuration/xmlconfig.py", line 359, in endElementNS self.context.end() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 620, in end self.stack.pop().finish() File "/opt/zenoss/lib/python/zope/configuration/config.py", line 773, in finish args = toargs(context, self.argdata) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 1564, in toargs args[str(name)] = field.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 227, in fromUnicode v = vt.fromUnicode(s) File "/opt/zenoss/lib/python/zope/configuration/fields.py", line 137, in fromUnicode value = self.context.resolve(name) File "/opt/zenoss/lib/python/zope/configuration/config.py", line 178, in resolve mod = import(mname, *_import_chickens) File "/zen/ZenPacks.zenoss.Microsoft.Windows/ZenPacks/zenoss/Microsoft/Windows/datasources/ServiceDataSource.py", line 34, in from txwinrm.collect import WinrmCollectClient, create_enum_info ZopeXMLConfigurationError: File "/opt/zenoss/etc/site.zcml", line 16.2-16.23 ZopeXMLConfigurationError: File "/zen/ZenPacks.zenoss.Microsoft.Windows/ZenPacks/zenoss/Microsoft/Windows/configure.zcml", line 110.4-114.10 ImportError: cannot import name create_enum_info

cluther commented 10 years ago

@smakked: I just ran into this same error on a system to which I had direct access. The problem turned out to be that an older version of txwinrm was installed into the system and was being used instead of the version packaged with the ZenPack.

See if you can find this in your system with the following command.

find $ZENHOME/lib -name txwinrm\*

If this turns up a directory under the Python site-packages you should remove that directory to solve the problem.