-
Notifications
You must be signed in to change notification settings - Fork 822
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
PermissionError: [Errno 13] Permission denied when running jupyter notebook on bash #3608
Comments
[E 09:26:44.260 NotebookApp] { |
Try Run Wsl With Administrator ? |
I get exactly the same error... anyone found a solution for this one? Some additional details: Jupyter works perfectly within WSL filesystem. However, when I Running jupyter with |
Well running with administrator does no work and I am now using jupyter on windows lol |
I'm using a library that doesn't have windows support, so unfortunately this is not an option for me... :-\ |
emmm why not directly use linux? it seems that jupyter doesn;t work so well on wsl |
That's my current solution... but I'd love to use WSL for this. Guess I'll
have to wait and see if this is solved in the future...
…On Sun, Dec 23, 2018 at 11:11 AM 1yc ***@***.***> wrote:
emmm why not directly use linux? it seems that jupyter doesn;t work so
well on wsl
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3608 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ATYQksp_uCvdWiYTTfAh81OJfYUHdS0Vks5u70i_gaJpZM4XWnBj>
.
|
Good luck~ |
I got a same error. |
I am having the same problem.
I have noticed that Jupyter lab complains about Windows system-specific directories such as Documents and Settings, My Music... But it works fine on a created directory in Documents.
@1yc do you know any other problem related to WLS. I was using Jupyterlab windows version and started migrating toward the WLS to have a bash terminal integrated and for some packages also. I would like to be aware of any future possible problem. |
I am having the same issue, the only work around I found was launching the notebook from a different drive other than my boot drive. I guess this wont help laptop users but maybe creating a partition will have the same effect. |
Open a subfolder which does not contain any windows folders. In my case this means running Hope that helps. |
I ran into this same issue and came up with a really hacky workaround. Backup /usr/local/lib/python3.7/dist-packages/notebook/utils.py (just in case) and edit the beginning of
This is caused by #2779. Since trying to access them throws a PermissionError and I'm pressed for time, this "workaround" simply squelches the exception and keeps running. There's probably a better way to do this by somehow detecting if The less nuclear workaround is what a couple others have pointed out. Run jupyter from a subdirectory and not the root of your home dir. |
Great investigation, thanks. Maybe add a short note detailing the Jupyter problem over in #2779 (which is at least open). This issue was closed because there was no effort at all given to provide CLI reproduction steps or fill in the template. You've got an actual hard fail here, as opposed to |
What I discovered is simple. Change directory to something else, away from the home directory (eg. /c/Users/) and instead move somewhere such as /d/Codes/Python |
I'm getting the 'permission denied' error for jupyter_notebook_config.py at jupyter startup on wsl. chmod on this file solves the problem. Citing: https://blog.csdn.net/sudakuang/article/details/78298320 |
As per above, I found the issues was as in #2779 but I would easily get work around to get to the directory I wanted if rather than navigate through each directory in Jupyter folder system UI, I jumped straight over the directories giving the problem: http://localhost:8888/tree/dtravers/winhome/ |
did you manage to fix this issue? |
i am getting this error plzz help me |
running "chmod -R 777" on "/home/yourdirectory" fixed this for me, as well any other permission problems i had running python scripts from jupyter notebooks |
I am using jupyter notebook for the first time but when I finished all the installation the following error message occurs on bash:
[E 09:19:54.020 NotebookApp] Uncaught exception GET /api/contents?type=directory&=1539220793912 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/contents?type=directory&=1539220793912', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/home/l_yc/.local/lib/python3.5/site-packages/tornado/web.py", line 1592, in _execute
result = yield result
File "/home/l_yc/.local/lib/python3.5/site-packages/tornado/gen.py", line 1133, in run
value = future.result()
File "/home/l_yc/anaconda3/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/home/l_yc/.local/lib/python3.5/site-packages/tornado/gen.py", line 326, in wrapper
yielded = next(result)
File "/home/l_yc/.local/lib/python3.5/site-packages/notebook/services/contents/handlers.py", line 112, in get
path=path, type=type, format=format, content=content,
File "/home/l_yc/.local/lib/python3.5/site-packages/notebook/services/contents/filemanager.py", line 431, in get
model = self._dir_model(path, content=content)
File "/home/l_yc/.local/lib/python3.5/site-packages/notebook/services/contents/filemanager.py", line 337, in _dir_model
if self.should_list(name) and not is_file_hidden(os_path, stat_res=st):
File "/home/l_yc/.local/lib/python3.5/site-packages/notebook/utils.py", line 145, in is_file_hidden_posix
stat_res = os.stat(abs_path)
PermissionError: [Errno 13] Permission denied: '/mnt/c/Users/lyc78/Application Data'
How can I fix the permission on this folder in a comparatively safe manner?
The text was updated successfully, but these errors were encountered: