Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gsutil not working on mac and python3.5

I am trying to use google storage lib but I am getting an error when I call gsutil...

Installed gsutil with pip:

pip install gsutil

my current python version is 3.5

when I run gsutil from command line I get the bellow error:

class AbortException(StandardError): NameError: name 'StandardError' is not defined

Not sure how to workaround this issue... any ideas?

EDIT: Looks like it works fine using python 3.4 despite they say it's not supported on 3x...

like image 807
Pippo Avatar asked Oct 30 '15 16:10

Pippo


People also ask

Can we use Gsutil in Python?

gsutil is a Python application that lets you access Cloud Storage from the command line. You can use gsutil to do a wide range of bucket and object management tasks, including: Creating and deleting buckets. Uploading, downloading, and deleting objects.

Where is Gsutil?

Gsutil full configuration is available in the ~/. boto file. You can edit that file directly or via the gsutil config command.


1 Answers

Looks like now Python3 support exists:

pip3 install gsutil

worked for me

like image 88
kip2 Avatar answered Oct 31 '22 13:10

kip2