Fixed
Status Update
Comments
ch...@google.com <ch...@google.com> #2
using the below does resolve the issue and allow the app to be deployed.
gcloud config set app/use_gsutil true
gcloud config set app/use_gsutil true
[Deleted User] <[Deleted User]> #3
Thanks for the update! We think we have a handle on this issue, and there should be a patch in the Cloud SDK 106 release due out next week that will work with the 'use_gsutil false' setting (which will eventually become the new default).
ch...@google.com <ch...@google.com> #4
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.
If you don't mind can you run this:
python -c 'import google;print google.__file__'
and report its output for your installation.
[Deleted User] <[Deleted User]> #5
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__'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute '__file__'
ke...@google.com <ke...@google.com> #6
I had the same issue. Running
python -c 'import google;print google.__path__'
showed
~/anaconda/lib/python2.7/site-packages/google
python -c 'import google;print google.__path__'
showed
~/anaconda/lib/python2.7/site-packages/google
ch...@google.com <ch...@google.com> #7
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
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
[Deleted User] <[Deleted User]> #8
The __path__ attribute showed the problem:
/Library/Python/2.7/site-packages/google
Which contains protobuf.
/Library/Python/2.7/site-packages/google/protobuf
/Library/Python/2.7/site-packages/google
Which contains protobuf.
/Library/Python/2.7/site-packages/google/protobuf
vi...@gmail.com <vi...@gmail.com> #9
thank you for posting this, saved my time
zj...@google.com <zj...@google.com> #10
This issue will be fixed in the Cloud SDK 98.0.0 release.
[Deleted User] <[Deleted User]> #12
I just upgrade to version 98.0.0 and confirm the fix. Thanks.
na...@gmail.com <na...@gmail.com> #13
I want to use google search API for python. First I have installed google API using pip
$ pip install google
It has installed successfully.
For code mentioned below it gives an error :
Traceback (most recent call last):
File "G:\Naiswita\Stock\html-tag-google-api.py", line 21, in <module>
for url in search(query, stop=10):
NameError: name 'search' is not defined
Next, I have installed google search API using pip
$ pip install Google-Search-API
still I am getting the same error
$ pip install google
It has installed successfully.
For code mentioned below it gives an error :
Traceback (most recent call last):
File "G:\Naiswita\Stock\html-tag-google-api.py", line 21, in <module>
for url in search(query, stop=10):
NameError: name 'search' is not defined
Next, I have installed google search API using pip
$ pip install Google-Search-API
still I am getting the same error
zj...@google.com <zj...@google.com> #14
The "google" and "Google-Search-API" packages are not official packages maintained by Google; you'll have to seek help with these packages with their maintainers.
Description
Running gsutil.
What is the expected output? What do you see instead?
gsutil
Traceback (most recent call last):
File "/Users/dberg/google-cloud-sdk/bin/bootstrapping/gsutil.py", line 12, in <module>
import bootstrapping
File "/Users/dberg/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 9, in <module>
import setup
File "/Users/dberg/google-cloud-sdk/bin/bootstrapping/setup.py", line 42, in <module>
reload(google)
What is the output of 'gcloud info'?
Google Cloud SDK [96.0.0]
Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]
Installation Root: [/Users/redacted/google-cloud-sdk]
Installed Components:
core: [2016.02.05]
core-nix: [2016.02.05]
gcloud: []
gsutil-nix: [4.15]
gsutil: [4.16]
bq: [2.0.18]
bq-nix: [2.0.18]
System PATH: [/Users/redacted/google-cloud-sdk/bin:/Users/redacted/bin:/Users/redacted/.rvm/gems/ruby-2.2.1/bin:/Users/redacted/.rvm/gems/ruby-2.2.1@global/bin:/Users/redacted/.rvm/rubies/ruby-2.2.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/redacted/.rvm/bin:/Users/redacted/.rvm/bin]
Cloud SDK on PATH: [True]
Installation Properties: [/Users/redacted/google-cloud-sdk/properties]
User Config Directory: [/Users/redacted/.config/gcloud]
User Properties: [/Users/redacted/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]
Account: [redacted@redacted.com]
Project: [redacted-prod]
Current Properties:
[core]
project: [redacted-prod]
account: [redacted@redacted.com]
disable_usage_reporting: [False]
[container]
cluster: [redacted-cluster-all]
[compute]
region: [us-central1]
zone: [us-central1-a]
Logs Directory: [/Users/redacted/.config/gcloud/logs]
Last Log File: [/Users/redacted/.config/gcloud/logs/2016.02.11/12.29.41.415337.log]
Please provide any additional information below.