I see, that resolved the issue. No complain of VersionConflict any more. However, now, it is back to square one. :( The odd thing is, I do see "add_metaclass" in the six.py. I am confused. What's going on?
ceilometer-agent-compute Traceback (most recent call last): File "/usr/local/bin/ceilometer-agent-compute", line 6, in <module> from ceilometer.compute.manager import agent_compute File "/usr/local/lib/python2.7/dist-packages/ceilometer/compute/manager.py", line 22, in <module> from ceilometer import agent File "/usr/local/lib/python2.7/dist-packages/ceilometer/agent.py", line 24, in <module> from ceilometer import pipeline File "/usr/local/lib/python2.7/dist-packages/ceilometer/pipeline.py", line 28, in <module> from ceilometer import publisher File "/usr/local/lib/python2.7/dist-packages/ceilometer/publisher/__init__.py", line 40, in <module> @six.add_metaclass(abc.ABCMeta) AttributeError: 'module' object has no attribute 'add_metaclass' Shixiong On Thu, Nov 14, 2013 at 9:43 PM, Lu, Lianhao <lianhao...@intel.com> wrote: > How do you replace, just manual copying? I think you should pip install -U > six. > > Best Regards, > Lianhao > > > > -----Original Message----- > > From: Shixiong Shang [mailto:sparkofwisdom.cl...@gmail.com] > > Sent: Friday, November 15, 2013 10:35 AM > > To: OpenStack Development Mailing List (not for usage questions) > > Subject: Re: [openstack-dev] [Ceilometer] compute agent cannot start > > > > Hi, Lianhao: > > > > I downloaded "six" package, 1.4.1 from pypi.python.org and replaced all > six.py files with the latest version, including the one under > > "/usr/lib/python2.7/dist-packages" directory. > > > > more /usr/lib/python2.7/dist-packages/six.py > > import operator > > import sys > > import types > > > > __author__ = "Benjamin Peterson <benja...@python.org>" > > __version__ = "1.4.1" > > > > > > However, ceilometer-agent-compute still complained of VersionConflict. > > > > > > > > 18:30:04.376 11553 ERROR stevedore.extension [-] Could not load > 'libvirt': (six 1.3.0 (/usr/lib/python2.7/dist-packages), > > Requirement.parse('six>=1.4.1')) > > 2013-11-14 18:30:04.376 11553 ERROR stevedore.extension [-] (six 1.3.0 > (/usr/lib/python2.7/dist-packages), > > Requirement.parse('six>=1.4.1')) > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension Traceback (most > recent call last): > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 89, in > > _load_plugins > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension invoke_kwds, > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 57, in > > _load_one_plugin > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension ep, > invoke_on_load, invoke_args, invoke_kwds, > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 101, in > > _load_one_plugin > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension plugin = > ep.load() > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2107, in load > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension if require: > self.require(env, installer) > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2120, in require > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension > working_set.resolve(self.dist.requires(self.extras),env,installer))) > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension File > "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension raise > VersionConflict(dist,req) # XXX put more info here > > 2013-11-14 18:30:04.376 11553 TRACE stevedore.extension VersionConflict: > (six 1.3.0 (/usr/lib/python2.7/dist-packages), > > Requirement.parse('six>=1.4.1')) > > > > Thanks! > > > > Shixiong > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Nov 14, 2013 at 9:02 PM, Lu, Lianhao <lianhao...@intel.com> > wrote: > > > > > > Which version of six do you have? I think you at least need six > 1.4.0 > > > > -Lianhao > > > > > > > -----Original Message----- > > > From: Shixiong Shang [mailto:sparkofwisdom.cl...@gmail.com] > > > Sent: Friday, November 15, 2013 4:47 AM > > > To: OpenStack Development Mailing List (not for usage questions) > > > Subject: [openstack-dev] [Ceilometer] compute agent cannot start > > > > > > Hi, Guys: > > > > > > I am trying to run ceilometer agent on compute node, and it gave > me the following traceback. I believe I hit this bug > > > ("https://bugs.launchpad.net/nova/+bug/1244055"). However, I > would like to know whether there is any workaround? > > > > > > > > > sudo python /usr/local/bin/ceilometer-agent-compute > > > Traceback (most recent call last): > > > File "/usr/local/bin/ceilometer-agent-compute", line 6, in > <module> > > > from ceilometer.compute.manager import agent_compute > > > File > "/usr/local/lib/python2.7/dist-packages/ceilometer/compute/manager.py", > line 22, in <module> > > > from ceilometer import agent > > > File > "/usr/local/lib/python2.7/dist-packages/ceilometer/agent.py", line 24, in > <module> > > > from ceilometer import pipeline > > > File > "/usr/local/lib/python2.7/dist-packages/ceilometer/pipeline.py", line 28, > in <module> > > > from ceilometer import publisher > > > File > "/usr/local/lib/python2.7/dist-packages/ceilometer/publisher/__init__.py", > line 40, in <module> > > > @six.add_metaclass(abc.ABCMeta) > > > AttributeError: 'module' object has no attribute 'add_metaclass' > > > > > > > > > Thanks! > > > > > > Shixiong > > > > > _______________________________________________ > > > OpenStack-dev mailing list > > > OpenStack-dev@lists.openstack.org > > > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > > _______________________________________________ > > OpenStack-dev mailing list > > OpenStack-dev@lists.openstack.org > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > > > > > > _______________________________________________ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev