This question is not related to google-appengine and thus it's
inappropriate on this group. Rather, ask on the gce-discussion group, or on
stackoverflow.com with the right tags (python jupyter google-compute-engine
google-cloud-storage).

Anyway, the issue is that Python's `open` only supports actual filesystems
and there is no `gs:` one (just as the error msg says, there IS no such
file or directory!). Rather, you'll want to e.g `import urllib` and use
`urllib.urlopen` on the appropriate google cloud storage URL to obtain the
file-like object to pass to `csv.reader`.


Alex


On Thu, Aug 18, 2016 at 2:10 PM, Hiral Mehta <hiralmehta0...@gmail.com>
wrote:

> Hi,
>
> I created a Cluster on Compute Engine and running Juoyter Notebook service
> on that.
> I then used python to run a simple machine learning program but stuck at a
> very initial phase.
>
> Unable to read csv file uploaded on google storage into a simple python
> program. The error and the sample program are attached.
> Looking for inputs and would appreciate your help.
>
> Thanks,
> Hiral Mehta
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/f1ad0a52-1257-4be0-95a7-
> 3e6eaa7a9a2b%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/f1ad0a52-1257-4be0-95a7-3e6eaa7a9a2b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be-EDnvFJwLbBF9Bgm%2BSbjCDkKG9FAV_haThbsE4WCsTjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to