isusanin / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

bq command-line throws an "argument of type 'module' is not iterable" exception. #632

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Any attempt to run 99.0.0's bq command-line tool will produce the error.

What is the expected output? What do you see instead?

> bq
Traceback (most recent call last):
  File "/Users/rb/google-cloud-sdk/platform/bq/bq.py", line 35, in <module>
    if 'reload' in __builtins__:
TypeError: argument of type 'module' is not iterable

What is the output of 'gcloud info'?

> gcloud info
Google Cloud SDK [99.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.9 (default, Jan 29 2015, 06:27:40)  [GCC 4.2.1 Compatible 
Apple LLVM 6.0 (clang-600.0.56)]]
Python Location: [/Users/rb/.virtualenvs/fgserver/bin/python2]
Site Packages: [Enabled]

Installation Root: [/Users/rb/google-cloud-sdk]
Installed Components:
  core: [2016.02.26]
  core-nix: [2016.02.26]
  gcloud: []
  gsutil-nix: [4.17]
  gsutil: [4.17]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[/Users/rb/.virtualenvs/fgserver/bin:/Users/rb/google-cloud-sdk/bin:/usr/local/C
ellar/ctags/5.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/U
sers/rb/bin:/Users/rb/google-cloud-sdk/bin]
Cloud SDK on PATH: [True]

Installation Properties: [/Users/rb/google-cloud-sdk/properties]
User Config Directory: [/Users/rb/.config/gcloud]
User Properties: [/Users/rb/.config/gcloud/properties]

Account: [ron@brooklynpacket.com]
Project: [tc-bic]

Current Properties:
  [core]
    project: [tc-bic]
    account: [ron@brooklynpacket.com]
    disable_usage_reporting: [True]

Logs Directory: [/Users/rb/.config/gcloud/logs]
Last Log File: [/Users/rb/.config/gcloud/logs/2016.03.07/16.53.36.529781.log]

Please provide any additional information below.

I've received this, installing with the interactive or the archive approach.

Original issue reported on code.google.com by r...@brooklynpacket.com on 8 Mar 2016 at 1:10

GoogleCodeExporter commented 8 years ago
Thanks for reporting the issue.
This issue could be related to 
https://code.google.com/p/google-cloud-sdk/issues/detail?id=538.

By any chance you have google protobuf python package installed?

Original comment by che...@google.com on 8 Mar 2016 at 1:47

GoogleCodeExporter commented 8 years ago
pip freeze shows:
protobuf==2.6.1

I'll take a deeper look at the link you added, but on initial inspection, it 
seems to apply only to pre-98.0.0.

Original comment by r...@brooklynpacket.com on 9 Mar 2016 at 11:45

GoogleCodeExporter commented 8 years ago
I think that it's not the same issue. I've fixed this one internally; I'll let 
you know when we have an estimate on the Cloud SDK release that it winds up in.

Original comment by z...@google.com on 10 Mar 2016 at 1:56

GoogleCodeExporter commented 8 years ago
It is not same issue, but same type of issue. Some of the same workarounds 
could work, for example uninstalling protobuf.

Original comment by che...@google.com on 10 Mar 2016 at 12:52

GoogleCodeExporter commented 8 years ago
This should be fixed in Cloud SDK 101.0.0, to be released.

Original comment by z...@google.com on 13 Mar 2016 at 2:22