title: Google Cloud Storage Client
body: <p>I make first steps with GCS</p>
  
  <p>First, I created service account in my project and got keyfile in json</p>
  
  <p>Next, I tried to write script like this <a href="https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-storage" rel="nofollow">sample</a></p>
  
  <p>But...</p>
  
  <pre><code>from gcloud import storage
  
  client = storage.Client.from_service_account_json('/path/to/keyfile.json')
  
  bucket = client.get_bucket('enggeo')
  # Then do other things...
  blob = bucket.get_blob('/ETicket.pdf')
  print blob.download_as_string()
  blob2 = bucket.blob('/wtt.txt')
  blob2.upload_from_filename(filename='/home/test2/.www/test')
  </code></pre>
  
  <p>And getting error</p>
  
  <pre><code>File "tt.py", line 3, in &lt;module&gt;
  client = storage.Client.from_service_account_json('/path/to/keyfile.json')  # TODO: rel paths
  File "/home/test2/lib/python2.7/site-packages/gcloud/client.py", line 64, in from_service_account_json
  return cls(*args, **kwargs)
  File "/home/test2/lib/python2.7/site-packages/gcloud/storage/client.py", line 53, in __init__
  http=http)
  File "/home/test2/lib/python2.7/site-packages/gcloud/client.py", line 181, in __init__
  _ClientProjectMixin.__init__(self, project=project)
  File "/home/test2/lib/python2.7/site-packages/gcloud/client.py", line 146, in __init__
  raise ValueError('Project was not passed and could not be '
  </code></pre>
  
  <p>Project was not passed and could not be determined from the environment.</p>
  
  <p>What is wrong?</p>