Created attachment 189896 [details]
Fix dependencies in net/google-cloud-sdk
1: If python3 is set as your default version, google-cloud-sdk will install but not run as it requires python2.
2: google-cloud-sdk requires py-sqlite3 to run:
> Command failed: gsutil cp test.txz gs://test/
> Traceback (most recent call last):
> File "/usr/local/google-cloud-sdk/bin/bootstrapping/gsutil.py", line 12, in <module>
> import bootstrapping
> File "/usr/local/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 22, in <module>
> from googlecloudsdk.core.credentials import store as c_store
> File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/credentials/store.py", line 30, in <module>
> from googlecloudsdk.core.credentials import creds
> File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/credentials/creds.py", line 32, in <module>
> import sqlite3
> File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
> from dbapi2 import *
> File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
> from _sqlite3 import *
> ImportError: No module named _sqlite3
Installing py-sqlite3 fixes the problem.
Not sure if it's correct as is but a proposed patch is attached.
A commit references this bug:
Date: Fri Mar 23 17:32:14 UTC 2018
New revision: 465390
net/google-cloud-sdk: Mark as only working with python 2.7
Submitted by: SBB <email@example.com>
Thanks, sorry this took so long, but the fix for python version has been committed. The sqlite dependency was added in r464710.