Juha Mustonen
2012-10-08 12:37:53 UTC
Juha Mustonen [http://community.zenoss.org/people/jmu] created the discussion
"Installing ZenPacks from egg fails: 'NoneType' object has no attribute 'clone'"
To view the discussion, visit: http://community.zenoss.org/message/68875#68875
--------------------------------------------------------------
When trying to install ZenPacks from provided .egg file, it fails with following (events.log):
[***@centos]$ zenpack --install=/home/zenoss/ZenPacks.community.Memcached-1.2-py2.6.egg
Link to http://pypi.python.org/simple/ZenPacks.community.Memcached/ ***BLOCKED*** by --allow-hosts
Couldn't find index page for 'ZenPacks.community.Memcached' (maybe misspelled?)
Link to http://pypi.python.org/simple/ ***BLOCKED*** by --allow-hosts
Â
No local packages or download links found for ZenPacks.community.Memcached==1.2
Couldn't find index page for 'ZenPacks.community.Memcached' (maybe misspelled?)
No local packages or download links found for ZenPacks.community.Memcached==1.2
ERROR:zen.ZenPackCMD:Error installing ZenPack /home/digia/ZenPacks.community.Memcached-1.2-py2.6.egg
Traceback (most recent call last):
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 233, in InstallEggAndZenPack
   zpDists = InstallEgg(dmd, eggPath, link=link)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 303, in InstallEgg
   DoEasyUninstall(eggPath)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 919, in DoEasyUninstall
   easy_install.main(args)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1712, in main
   with_ei_usage(lambda:
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1700, in with_ei_usage
   return f()
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1716, in <lambda>
   distclass=DistributionWithoutHelpCommands, **kw
 File "/opt/zenoss/lib/python2.7/distutils/core.py", line 152, in setup
   dist.run_commands()
 File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 953, in run_commands
   self.run_command(cmd)
 File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 972, in run_command
   cmd_obj.run()
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 211, in run
   self.easy_install(spec, not self.no_deps)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 427, in easy_install
   return self.install_item(None, spec, tmpdir, deps, True)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 478, in install_item
   self.process_distribution(spec, dist, deps)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 519, in process_distribution
   [requirement], self.local_index, self.easy_install
 File "/opt/zenoss/lib/python/pkg_resources.py", line 563, in resolve
   dist = best[req.key] = env.best_match(req, self, installer)
 File "/opt/zenoss/lib/python/pkg_resources.py", line 799, in best_match
   return self.obtain(req, installer) # try and download/install
 File "/opt/zenoss/lib/python/pkg_resources.py", line 811, in obtain
   return installer(requirement)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 434, in easy_install
   self.local_index
 File "/opt/zenoss/lib/python/setuptools/package_index.py", line 475, in fetch_distribution
   return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
 File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 478, in <module>
   zp.run()
 File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 163, in run
   fromUI=self.options.fromui)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 259, in InstallEggAndZenPack
   raise e
AttributeError: 'NoneType' object has no attribute 'clone'
Outcome is the same when installing both from command line or via web UI.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68875#68875]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Installing ZenPacks from egg fails: 'NoneType' object has no attribute 'clone'"
To view the discussion, visit: http://community.zenoss.org/message/68875#68875
--------------------------------------------------------------
When trying to install ZenPacks from provided .egg file, it fails with following (events.log):
[***@centos]$ zenpack --install=/home/zenoss/ZenPacks.community.Memcached-1.2-py2.6.egg
Link to http://pypi.python.org/simple/ZenPacks.community.Memcached/ ***BLOCKED*** by --allow-hosts
Couldn't find index page for 'ZenPacks.community.Memcached' (maybe misspelled?)
Link to http://pypi.python.org/simple/ ***BLOCKED*** by --allow-hosts
Â
No local packages or download links found for ZenPacks.community.Memcached==1.2
Couldn't find index page for 'ZenPacks.community.Memcached' (maybe misspelled?)
No local packages or download links found for ZenPacks.community.Memcached==1.2
ERROR:zen.ZenPackCMD:Error installing ZenPack /home/digia/ZenPacks.community.Memcached-1.2-py2.6.egg
Traceback (most recent call last):
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 233, in InstallEggAndZenPack
   zpDists = InstallEgg(dmd, eggPath, link=link)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 303, in InstallEgg
   DoEasyUninstall(eggPath)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 919, in DoEasyUninstall
   easy_install.main(args)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1712, in main
   with_ei_usage(lambda:
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1700, in with_ei_usage
   return f()
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1716, in <lambda>
   distclass=DistributionWithoutHelpCommands, **kw
 File "/opt/zenoss/lib/python2.7/distutils/core.py", line 152, in setup
   dist.run_commands()
 File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 953, in run_commands
   self.run_command(cmd)
 File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 972, in run_command
   cmd_obj.run()
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 211, in run
   self.easy_install(spec, not self.no_deps)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 427, in easy_install
   return self.install_item(None, spec, tmpdir, deps, True)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 478, in install_item
   self.process_distribution(spec, dist, deps)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 519, in process_distribution
   [requirement], self.local_index, self.easy_install
 File "/opt/zenoss/lib/python/pkg_resources.py", line 563, in resolve
   dist = best[req.key] = env.best_match(req, self, installer)
 File "/opt/zenoss/lib/python/pkg_resources.py", line 799, in best_match
   return self.obtain(req, installer) # try and download/install
 File "/opt/zenoss/lib/python/pkg_resources.py", line 811, in obtain
   return installer(requirement)
 File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 434, in easy_install
   self.local_index
 File "/opt/zenoss/lib/python/setuptools/package_index.py", line 475, in fetch_distribution
   return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
 File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 478, in <module>
   zp.run()
 File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 163, in run
   fromUI=self.options.fromui)
 File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 259, in InstallEggAndZenPack
   raise e
AttributeError: 'NoneType' object has no attribute 'clone'
Outcome is the same when installing both from command line or via web UI.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68875#68875]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]