When I just installed the google cloud SDK noticed the following error

gsutil ls                                                                                                1 ↵  2196  22:42:26
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/praveen/Documents/google-cloud-sdk/platform/gsutil/gslib/__init__.py", line 153, in <module>
    CHECKSUM_FILE, CHECKSUM = _GetFileContents('CHECKSUM')
  File "/Users/praveen/Documents/google-cloud-sdk/platform/gsutil/gslib/__init__.py", line 136, in _GetFileContents
    content = pkgutil.get_data('gslib', filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 591, in get_data
    return loader.get_data(resource_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 255, in get_data
    return open(pathname, "rb").read()
IOError: [Errno 2] No such file or directory: u'/Users/praveen/Documents/google-cloud-sdk/platform/gsutil/gslib/CHECKSUM'

From the error, it seems the CHECKSUM was expected inside the gslib folder. I just copied the CHECKSUM available under gsutil into the gslib and the issue was resolved.

Gsuil returning checksum error

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.