Before i updated python2.6.6 to python2.7, gsutil was working fine.
But after update to 2.7 ,
and i also edited /usr/bin/yum to #!/usr/bin/python2.6
[root@instance-1 ~]# gsutil config
Traceback (most recent call last):
File "/usr/local/src/google-cloud-sdk/platform/gsutil/gsutil", line 22, in <module>
gsutil.RunMain()
File "/usr/local/src/google-cloud-sdk/platform/gsutil/gsutil.py", line 107, in RunMain
import gslib.__main__
File "/usr/local/src/google-cloud-sdk/platform/gsutil/gslib/__main__.py", line 39, in <module>
import boto
File "/usr/local/src/google-cloud-sdk/platform/gsutil/third_party/boto/boto/__init__.py", line 1216, in <module>
boto.plugin.load_plugins(config)
File "/usr/local/src/google-cloud-sdk/platform/gsutil/third_party/boto/boto/plugin.py", line 93, in load_plugins
_import_module(file)
File "/usr/local/src/google-cloud-sdk/platform/gsutil/third_party/boto/boto/plugin.py", line 75, in _import_module
return imp.load_module(name, file, filename, data)
File "/usr/lib/python2.6/site-packages/google_compute_engine/boto/compute_auth.py", line 19, in <module>
from google_compute_engine import logger
ImportError: No module named google_compute_engine
It looks like:
google_compute_engine module. Maybe this was removed or move during the upgrade process? If you don't see the /usr/lib/python2.6/site-packages/google_compute_engine directory on your machine, or it's empty, etc., then you may want to try a clean install of google-compute-engine (note the dashes, not underscores) using yum or pip (making sure to run pip with python 2.6, assuming you want to use it rather than 2.7) as described in the README doc.If that doesn't work, we'll need some more info to help narrow down the problem:
yum and Python 2.6.X)?thanks a lot
I solved this problem after i reinstall the google-compute-engine,
I think just like you said " Maybe boto was removed or move during the upgrade process"
Most helpful comment
thanks a lot
I solved this problem after i reinstall the google-compute-engine,
I think just like you said " Maybe boto was removed or move during the upgrade process"