OpenGeoscience / geonotebook

A Jupyter notebook extension for geospatial visualization and analysis
Apache License 2.0
1.08k stars 141 forks source link

no access to data dir #154

Closed dementiev closed 6 years ago

dementiev commented 6 years ago

Geonotebook is launched with docker command: docker run -p 8888:8888 \ -v /Users/XXX/Documents/notebooks/geonotebook:/notebooks \ -v /Users/XXX/Documents/gisdata:/data -it --rm geonotebook

In notebook then I can't access file stored in data dir: os.access('/Users/XXX/Documents/gisdata/filename.tif', os.R_OK) => returns false

Any suggestions?

danlamanna commented 6 years ago

It seems like you're mounting gisdata at /data, so your os.access line should be:

os.access('/data/filename.tif', os.R_OK)

On Fri, Oct 20, 2017 at 10:09 AM, Dmitry notifications@github.com wrote:

Geonotebook is launched with docker command: docker run -p 8888:8888 \ -v /Users/XXX/Documents/notebooks/geonotebook:/notebooks \ -v /Users/XXX/Documents/gisdata:/data -it --rm geonotebook

In notebook then I can't access file stored in data dir: os.access('/Users/XXX/Documents/gisdata/filename.tif', os.R_OK) => returns false

Any suggestions?

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/OpenGeoscience/geonotebook/issues/154

dementiev commented 6 years ago

@danlamanna you are right, thank you.