Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create folders in jupyter #13

Open
Idofriedman opened this issue May 29, 2018 · 2 comments
Open

Unable to create folders in jupyter #13

Idofriedman opened this issue May 29, 2018 · 2 comments

Comments

@Idofriedman
Copy link

image

I was able to fix by adding
image

But it looks there are other issues related to working with folders

10x

@vmarkovtsev
Copy link
Collaborator

@Idofriedman It is not clear what you've changed, can you please attach a diff instead.

Also, can you test it with Python 3 as it may be smth specific to 2.

Besides, since I cannot reproduce it, I need the exact versions of your jgscm, Jupyter and all the google packages.

@amacfie
Copy link

amacfie commented Jan 29, 2019

I'm getting this with Python 3 too

Traceback (most recent call last): File
"/opt/conda/lib/python3.6/site-packages/jgscm/__init__.py", line 467, in
_get_bucket return cache[name] KeyError: 'untitled-folder' During handling of
the above exception, another exception occurred: Traceback (most recent call
last): File "/opt/conda/lib/python3.6/site-packages/tornado/web.py", line 1592,
in _execute result = yield result File
"/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result() File
"/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info) File
"/opt/conda/lib/python3.6/site-packages/notebook/services/contents/handlers.py",
line 200, in post yield self._new_untitled(path, type=type, ext=ext) File
"/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 1133, in run
value = future.result() File
"/opt/conda/lib/python3.6/site-packages/tornado/gen.py", line 326, in wrapper
yielded = next(result) File
"/opt/conda/lib/python3.6/site-packages/notebook/services/contents/handlers.py",
line 154, in _new_untitled model = yield
gen.maybe_future(self.contents_manager.new_untitled(path=path, type=type,
ext=ext)) File
"/opt/conda/lib/python3.6/site-packages/notebook/services/contents/manager.py",
line 392, in new_untitled name = self.increment_filename(untitled + ext, path,
insert=insert) File
"/opt/conda/lib/python3.6/site-packages/notebook/services/contents/manager.py",
line 344, in increment_filename if not self.exists(u'{}/{}'.format(path,
name)): File
"/opt/conda/lib/python3.6/site-packages/notebook/services/contents/manager.py",
line 247, in exists return self.file_exists(path) or self.dir_exists(path) File
"/opt/conda/lib/python3.6/site-packages/jgscm/__init__.py", line 211, in
wrapped_fn result = fn(self, *args, **kwargs) File
"/opt/conda/lib/python3.6/site-packages/jgscm/__init__.py", line 245, in
file_exists bucket = self._get_bucket(bucket_name) File
"/opt/conda/lib/python3.6/site-packages/jgscm/__init__.py", line 470, in
_get_bucket bucket = self.client.get_bucket(name) File
"/opt/conda/lib/python3.6/site-packages/gcloud/storage/client.py", line 167, in
get_bucket bucket.reload(client=self) File
"/opt/conda/lib/python3.6/site-packages/gcloud/storage/_helpers.py", line 77,
in reload _target_object=self) File
"/opt/conda/lib/python3.6/site-packages/gcloud/connection.py", line 347, in
api_request error_info=method + ' ' + url) gcloud.exceptions.Forbidden: 403
197223759395-compute@developer.gserviceaccount.com does not have
storage.buckets.get access to untitled-folder. (GET
https://www.googleapis.com/storage/v1/b/untitled-folder?projection=noAcl)

I'm using Google Dataproc with the Jupyter initialization.

I notice that the error message mentions something about incrementing filenames -- I also see an issue where if I create two new notebooks, they're both named "untitled" and the second overwrites the first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants