I downloaded the zip file and I get the following error message.
Please let me know what am I doing wrong.
c:\code\gsutil>python gsutil
Traceback (most recent call last):
File "gsutil", line 314, in <module>
main()
File "gsutil", line 102, in main
gsutil_ver)
File "c:\code\gsutil\gslib\command_runner.py", line 47, in __init__
self.command_map = self._LoadCommandMap()
File "c:\code\gsutil\gslib\command_runner.py", line 57, in
_LoadCommandMap
__import__('gslib.commands.%s' % module_name)
File "c:\code\gsutil\gslib\commands\help.py", line 15, in <module>
import fcntl
ImportError: No module named fcntl
On Mar 20, 2:30 pm, "Mike Schwartz (Google Storage Team)" <gs-
t...@google.com> wrote:
> *Hi,
>
> A new major release of gsutil (v3.0) is available by
> zipfile<
http://commondatastorage.googleapis.com/pub/gsutil.zip>or
> tarball <
http://commondatastorage.googleapis.com/pub/gsutil.tar.gz>.
>
> This release provides significant functionality and performance
> enhancements, a new hierarchical file tree abstraction layer, and numerous
> bug fixes. However, it also changes the behavior of the ls command and the
> * wildcard, in ways that may require changes to scripts that depend on ls
> and * behavior. Please see the Release
> notes<
http://commondatastorage.googleapis.com/pub/ReleaseNotes_3.0.txt>for
> full details; below are highlights of the new features and potentially
> required script changes.
>
> New Features:
>
> - Built-in help for all commands and many additional topics (try "gsutil
> help").
> - Support for copying data to/from bucket sub-directories (see “gsutil
> help cp”).
> - Support for renaming bucket sub-directories (see “gsutil help mv”).
> - Support for listing individual bucket sub-directories and for listing
> directories recursively (see “gsutil help ls”).
> - Support for Cross-Origin Resource Sharing (CORS) configuration (see
> "gsutil help cors").
> - Multi-threading support for the setacl command (see “gsutil help
> setacl”).
> - Support for using the UNIX “file” command to do content type
> recognition as an alternative to filename extensions (see "gsutil help
> metadata").
> - The gsutil update command is no longer beta/experimental.
>
> As part of the bucket sub-directory support we changed the * wildcard to
> match only up to directory boundaries, and introduced the new ** wildcard
> to span directories the way * used to. We made this change both to be more
> consistent with how wildcards work in command interpreters (like bash), and
> to enable a variety of use cases for distributing large transfers across
> many machines. For example you can run the following commands on 3 machines:
> gsutil cp -R gs://my_bucket/result_set_[0-3]* dir
> gsutil cp -R gs://my_bucket/result_set_[4-6]* dir
> gsutil cp -R gs://my_bucket/result_set_[7-9]* dir
> and end up with all of the result_set_* directories nested under dir.
>
> Script Changes You May Need to Make To Use gsutil 3.0:
> If your script depends on listing the entire (flat) contents of a bucket
> using something like:
> gsutil ls gs://my_bucket
> you'll need to change to use:
> gsutil ls gs://my_bucket/**
>
> If your script uses the * wildcard to name objects spanning directories,
> such as:
> gsutil cp gs://mybucket/*.txt ./dir
> (where you want to match objects several directories down from the
> top-level bucket), you'll need to change to use:
> gsutil cp gs://mybucket/**.txt ./dir
>
> Mike Schwartz and the Google Cloud Storage Team*