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

Some body help, im getting a kernel error message as below: #5631

Open
Ashwin-gx opened this issue Jul 26, 2020 · 2 comments
Open

Some body help, im getting a kernel error message as below: #5631

Ashwin-gx opened this issue Jul 26, 2020 · 2 comments

Comments

@Ashwin-gx
Copy link

Ashwin-gx commented Jul 26, 2020

File "E:\PYTHON\lib\site-packages\tornado\web.py", line 1699, in _execute
result = await result
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "E:\PYTHON\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
type=mtype))
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "E:\PYTHON\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 88, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "E:\PYTHON\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "E:\PYTHON\lib\site-packages\tornado\gen.py", line 209, in wrapper
yielded = next(result)
File "E:\PYTHON\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "E:\PYTHON\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "E:\PYTHON\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "E:\PYTHON\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "E:\PYTHON\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "E:\PYTHON\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "E:\PYTHON\lib\site-packages\jupyter_client\connect.py", line 102, in secure_write
with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\Users\Ashwin\AppData\Roaming\jupyter\runtime\kernel-3db709bc-4e90-4d10-a9d3-a50b23760b64.json'

@Ashwin-gx
Copy link
Author

jupyter kernelspec list
Available kernels:
python3 C:\Users\Ashwin\AppData\Roaming\jupyter\kernels\python3

this is being displayed when i did: "jupyter kernelspec list" on the anaconda prompt

@kevin-bates
Copy link
Member

Hi @Ashwin-gx - this is a duplicate of several issues. I would first recommend upgrading your jupyter_client package, which should also update your jupyter_core package (where the secure_write() method now lives). Once you upgrade, restart the notebook server and reattempt the kernel startup. I suspect you'll probably have the same issue, but the error message should resemble that described in #5197. To get around this issue, take a look at this comment - which provides a couple of work arounds: #5197 (comment)

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

2 participants