Fix
====
* Download debian package of python-six_1.9 and install it.
#wget http://ftp.us.debian.org/debian/pool/main/s/six/python-six_1.9.0-3_all.deb
#sudo apt-get install gdebi
#sudo gdebi python-six_1.9.0-3_all.deb
#python -c "import six; print six.__version__"
1.9.0
Error
=====
2015-06-01 16:25:05.536 23761 CRITICAL ec2api [-] AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'SplitResult'
2015-06-01 16:25:05.536 23761 ERROR ec2api Traceback (most recent call last):
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/bin/ec2-api", line 10, in
2015-06-01 16:25:05.536 23761 ERROR ec2api sys.exit(main())
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/cmd/api.py", line 34, in main
2015-06-01 16:25:05.536 23761 ERROR ec2api server = service.WSGIService('ec2api', max_url_len=16384)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/service.py", line 78, in __init__
2015-06-01 16:25:05.536 23761 ERROR ec2api self.app = self.loader.load_app(name)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/wsgi.py", line 514, in load_app
2015-06-01 16:25:05.536 23761 ERROR ec2api return deploy.loadapp("config:%s" % self.config_path, name=name)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-06-01 16:25:05.536 23761 ERROR ec2api return loadobj(APP, uri, name=name, **kw)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-06-01 16:25:05.536 23761 ERROR ec2api return context.create()
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-06-01 16:25:05.536 23761 ERROR ec2api return self.object_type.invoke(self)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-06-01 16:25:05.536 23761 ERROR ec2api **context.local_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2015-06-01 16:25:05.536 23761 ERROR ec2api val = callable(*args, **kw)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line 31, in urlmap_factory
2015-06-01 16:25:05.536 23761 ERROR ec2api app = loader.get_app(app_name, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-06-01 16:25:05.536 23761 ERROR ec2api name=name, global_conf=global_conf).create()
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2015-06-01 16:25:05.536 23761 ERROR ec2api APP, name=name, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api section)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
2015-06-01 16:25:05.536 23761 ERROR ec2api object_type, name=use, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2015-06-01 16:25:05.536 23761 ERROR ec2api global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 337, in _loadfunc
2015-06-01 16:25:05.536 23761 ERROR ec2api return loader.get_context(object_type, name, global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 681, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api obj = lookup_object(self.spec)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 68, in lookup_object
2015-06-01 16:25:05.536 23761 ERROR ec2api module = __import__(parts)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/__init__.py", line 31, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import apirequest
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/apirequest.py", line 23, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import cloud
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/cloud.py", line 28, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import address
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/address.py", line 22, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import clients
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/clients.py", line 17, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from novaclient import client as novaclient
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 38, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from oslo_utils import netutils
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/oslo_utils/netutils.py", line 224, in
2015-06-01 16:25:05.536 23761 ERROR ec2api class _ModifiedSplitResult(parse.SplitResult):
2015-06-01 16:25:05.536 23761 ERROR ec2api AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'SplitResult'
2015-06-01 16:25:05.536 23761 ERROR ec2api
====
* Download debian package of python-six_1.9 and install it.
#wget http://ftp.us.debian.org/debian/pool/main/s/six/python-six_1.9.0-3_all.deb
#sudo apt-get install gdebi
#sudo gdebi python-six_1.9.0-3_all.deb
#python -c "import six; print six.__version__"
1.9.0
Error
=====
2015-06-01 16:25:05.536 23761 CRITICAL ec2api [-] AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'SplitResult'
2015-06-01 16:25:05.536 23761 ERROR ec2api Traceback (most recent call last):
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/bin/ec2-api", line 10, in
2015-06-01 16:25:05.536 23761 ERROR ec2api sys.exit(main())
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/cmd/api.py", line 34, in main
2015-06-01 16:25:05.536 23761 ERROR ec2api server = service.WSGIService('ec2api', max_url_len=16384)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/service.py", line 78, in __init__
2015-06-01 16:25:05.536 23761 ERROR ec2api self.app = self.loader.load_app(name)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/wsgi.py", line 514, in load_app
2015-06-01 16:25:05.536 23761 ERROR ec2api return deploy.loadapp("config:%s" % self.config_path, name=name)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-06-01 16:25:05.536 23761 ERROR ec2api return loadobj(APP, uri, name=name, **kw)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-06-01 16:25:05.536 23761 ERROR ec2api return context.create()
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-06-01 16:25:05.536 23761 ERROR ec2api return self.object_type.invoke(self)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-06-01 16:25:05.536 23761 ERROR ec2api **context.local_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2015-06-01 16:25:05.536 23761 ERROR ec2api val = callable(*args, **kw)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/urlmap.py", line 31, in urlmap_factory
2015-06-01 16:25:05.536 23761 ERROR ec2api app = loader.get_app(app_name, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-06-01 16:25:05.536 23761 ERROR ec2api name=name, global_conf=global_conf).create()
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2015-06-01 16:25:05.536 23761 ERROR ec2api APP, name=name, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api section)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
2015-06-01 16:25:05.536 23761 ERROR ec2api object_type, name=use, global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2015-06-01 16:25:05.536 23761 ERROR ec2api global_conf=global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 337, in _loadfunc
2015-06-01 16:25:05.536 23761 ERROR ec2api return loader.get_context(object_type, name, global_conf)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 681, in get_context
2015-06-01 16:25:05.536 23761 ERROR ec2api obj = lookup_object(self.spec)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/paste/deploy/util.py", line 68, in lookup_object
2015-06-01 16:25:05.536 23761 ERROR ec2api module = __import__(parts)
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/__init__.py", line 31, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import apirequest
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/apirequest.py", line 23, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import cloud
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/cloud.py", line 28, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import address
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/address.py", line 22, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from ec2api.api import clients
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/home/saju/ec2-api/ec2api/api/clients.py", line 17, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from novaclient import client as novaclient
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 38, in
2015-06-01 16:25:05.536 23761 ERROR ec2api from oslo_utils import netutils
2015-06-01 16:25:05.536 23761 ERROR ec2api File "/usr/local/lib/python2.7/dist-packages/oslo_utils/netutils.py", line 224, in
2015-06-01 16:25:05.536 23761 ERROR ec2api class _ModifiedSplitResult(parse.SplitResult):
2015-06-01 16:25:05.536 23761 ERROR ec2api AttributeError: 'Module_six_moves_urllib_parse' object has no attribute 'SplitResult'
2015-06-01 16:25:05.536 23761 ERROR ec2api
No comments:
Post a Comment