6

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...

Pippo
  • 905
  • 11
  • 22

3 Answers3

4

Looks like now Python3 support exists:

pip3 install gsutil

worked for me

kip2
  • 6,473
  • 4
  • 55
  • 72
2

From the gsutil System Requirements documentation:

To use gsutil, you must have Python 2.6.x or 2.7.x installed on your computer. gsutil does not currently run on Python 3.x.

jterrace
  • 64,866
  • 22
  • 157
  • 202
1

Because gsutil still does not support Python 3, I decided to write a replacement: https://pypi.org/project/gs/. In addition to supporting Python 3, it can be used as a Python library, and has a few other improvements over gsutil functionality (courtesy of click, the CLI helper library).

weaver
  • 1,763
  • 15
  • 16