yoheimuta / google-bigquery-tools

Automatically exported from code.google.com/p/google-bigquery-tools
0 stars 4 forks source link

Latest bq (2.0.14) not compatible with latest gsutil (3.34) #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It looks like bq (bigquery 2.0.14) requires google-api-python-client 1.0 
whereas gsutil (3.34) requires >=  google-api-python-client >= 1.1

This is a problem since both bq and gsutil are commonly used together (e.g. 
https://docs.google.com/document/d/15TZ7p-NSWWC3ZpvDXba0sM2W9X_8h8pn7q2ha0GicHM/
edit)

1. Run the following in terminal (OS X Lion 10.8.4):

pip install bigquery
pip install gsutil
bq

results in an error:
Traceback (most recent call last):
  File "/usr/local/bin/bq", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in <module>
    parse_requirements(__requires__), Environment()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: google-api-python-client==1.0

2. Uninstall and installing bigquery again fix it but gsutil then becomes 
broken:

pip uninstall bigquery
pip install bigquery
gsutil

results in:
Traceback (most recent call last):
  File "/usr/local/bin/gsutil", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in <module>
    parse_requirements(__requires__), Environment()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: google-api-python-client>=1.1

Original issue reported on code.google.com by chilang@gmail.com on 10 Aug 2013 at 4:37