Today updated the jupyter notebook to the latest version (6.0.1). And now when I try to open any notebook I get an Kernel Error:
Traceback (most recent call last):
File "c:pythonlibsite-packagestornadoweb.py", line 1592, in _execute
result = yield result
File "c:pythonlibsite-packagestornadogen.py", line 1133, in run
value = future.result()
File "c:pythonlibsite-packagestornadogen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "c:pythonlibsite-packagesnotebookservicessessionshandlers.py", line 73, in post
type=mtype))
File "c:pythonlibsite-packagestornadogen.py", line 1133, in run
value = future.result()
File "c:pythonlibsite-packagestornadogen.py", line 1141, in run
yielded = self.gen.throw(exc_info)
File "c:pythonlibsite-packagesnotebookservicessessionssessionmanager.py", line 79, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "c:pythonlibsite-packagestornadogen.py", line 1133, in run
value = future.result()
File "c:pythonlibsite-packagestornadogen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "c:pythonlibsite-packagesnotebookservicessessionssessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "c:pythonlibsite-packagestornadogen.py", line 1133, in run
value = future.result()
File "c:pythonlibsite-packagestornadogen.py", line 326, in wrapper
yielded = next(result)
File "c:pythonlibsite-packagesnotebookserviceskernelskernelmanager.py", line 160, in start_kernel
super(MappingKernelManager, self).start_kernel(kwargs)
File "c:pythonlibsite-packagesjupyter_clientmultikernelmanager.py", line 110, in start_kernel
km.start_kernel(kwargs)
File "c:pythonlibsite-packagesjupyter_clientmanager.py", line 240, in start_kernel
self.write_connection_file()
File "c:pythonlibsite-packagesjupyter_clientconnect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "c:pythonlibsite-packagesjupyter_clientconnect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "c:pythonlibcontextlib.py", line 112, in __enter__
return next(self.gen)
File "c:pythonlibsite-packagesjupyter_clientconnect.py", line 100, in secure_write
win32_restrict_file_to_user(fname)
File "c:pythonlibsite-packagesjupyter_clientconnect.py", line 58, in win32_restrict_file_to_user
admins, _domain, _type = win32security.LookupAccountName("", "Administrators")
pywintypes.error: (1332, 'LookupAccountName', 'No Mapping Between Account Names and Security ID was Done.')
System Win10 x64.
Any ideas?
I downgrade jupyter-client to version 5.3.1 and it worked.
Same problem here. Also when I try new installation with pip. Win10 x64
Same problem here (win10 x64), downgrading the jupyter-client to the 5.3.1 version works like a charm!
Yes - downgrading jupyter_client is the correct action at this time. Here's the PR you want to track into a patch release: https://github.com/jupyter/jupyter_client/pull/478
Same problem here, in a recent-formatted PC with pip (Win10 x64). Downgrading jupyter-client to 5.3.1 also worked for me!
jupyter_client 5.3.3 should have the fix for the issue now, though there was a reported problem with jupyerlab's python terminal after the change.
Most helpful comment
I downgrade jupyter-client to version 5.3.1 and it worked.