I'm trying to read a csv_file from Google Storage Cloud to Google Cloud Datalab exactly like suggested in here.
I keep getting the error: Source object gs://analog-arbor-233411/traissn.csv does not exist. (analog-arbor-233411 is my bucket name, traissn.csv is my csv file.
So here I checked that the bucket really exists, and it does.
import google.datalab.storage as storage
mybucket = storage.Bucket('analog-arbor-233411')
mybucket.exists()
Here I even iterate through the mybucket.objects() which gives an iterator for the objects within the bucket to make sure that I get an existing object. So data_csv_meta only takes the last object in the iteration. Then I checked again if it exists, and surely it does!
for i in mybucket.objects():
data_csv = i
data_csv.exists()
Here is a funny thing. When I run the following, I get the error Source object gs://analog-arbor-233411/traissn.csv does not exist (my object name in data_csv traissn.csv)
uri = data_csv.uri
%gcs read --object $uri --variable data
Tried looking everywhere, but can't get an answer.