Bug 225308 - net/google-cloud-sdk: fix dependencies
Summary: net/google-cloud-sdk: fix dependencies
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
Depends on:
Reported: 2018-01-18 22:38 UTC by SBB
Modified: 2018-03-23 17:34 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (swills)

Fix dependencies in net/google-cloud-sdk (443 bytes, patch)
2018-01-18 22:38 UTC, SBB
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SBB 2018-01-18 22:38:14 UTC
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.
Comment 1 commit-hook freebsd_committer 2018-03-23 17:33:07 UTC
A commit references this bug:

Author: swills
Date: Fri Mar 23 17:32:14 UTC 2018
New revision: 465390
URL: https://svnweb.freebsd.org/changeset/ports/465390

  net/google-cloud-sdk: Mark as only working with python 2.7

  PR:		225308
  Submitted by:	SBB <samorders@gmail.com>

Comment 2 Steve Wills freebsd_committer 2018-03-23 17:34:33 UTC
Thanks, sorry this took so long, but the fix for python version has been committed. The sqlite dependency was added in r464710.