Open GoogleCodeExporter opened 8 years ago
Thank you for reporting the issue.
You can work around the issue by removing offending line in the file:
google-cloud-sdk/bin/bootstrapping/setup.py line 42
Do you have some other google python package installed on your machine?
Original comment by che...@google.com
on 11 Feb 2016 at 11:57
I don't think I have another google python package installed.
As a workaround I installed gsutil from here
https://cloud.google.com/storage/docs/gsutil_install and gave it priority on my
path lookup.
Original comment by db...@kabaminc.com
on 12 Feb 2016 at 12:27
Great you found a way.
If you don't mind can you run this:
python -c 'import google;print google.__file__'
and report its output for your installation.
Original comment by che...@google.com
on 12 Feb 2016 at 12:41
python -c 'import google;print google.__file__'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute '__file__'
Original comment by db...@kabaminc.com
on 12 Feb 2016 at 12:44
I had the same issue. Running
python -c 'import google;print google.__path__'
showed
~/anaconda/lib/python2.7/site-packages/google
Original comment by kevi...@google.com
on 12 Feb 2016 at 8:47
As a workaround installation can be patched via:
sed -i "s/'google' in sys.modules/False/" $(gcloud info
--format='value(installation.sdk_root)')/bin/bootstrapping/setup.py
or creating a file in
touch $(gcloud info
--format='value(installation.sdk_root)')/lib/third_party/google.py
Original comment by che...@google.com
on 12 Feb 2016 at 6:21
The __path__ attribute showed the problem:
/Library/Python/2.7/site-packages/google
Which contains protobuf.
/Library/Python/2.7/site-packages/google/protobuf
Original comment by db...@kabaminc.com
on 15 Feb 2016 at 6:38
thank you for posting this, saved my time
Original comment by vitaliy....@gmail.com
on 16 Feb 2016 at 11:57
This issue will be fixed in the Cloud SDK 98.0.0 release.
Original comment by z...@google.com
on 16 Feb 2016 at 6:51
Original issue reported on code.google.com by
db...@kabaminc.com
on 11 Feb 2016 at 8:34