It appears that somehow one of my kernels is deleted. And perhaps that's why I am getting this error. How could I possibly fix it? Can I reinstall something (the kernel in the base environment perhaps)?
If no better option is available, I would try reinstalling anaconda altogether as a last resort according to: Default kernel in jupyter notebook (Python3) not working.
I have tried using the following:
- Installation of Jupyter Lab:
requirements already satisfied
- Kernels don't show up when runnning "jupyter lab"
- UI says "No kernel" while I definitively have one
- Getting Kernel Error while running Jupyter Notebook in Python3
- https://ipython.readthedocs.io/en/latest/install/kernel_install.html
- https://medium.com/flatiron-engineering/recovering-from-a-jupyter-disaster-27401677aeeb
Current List of Kernels
jupyter kernelspec list
Output:
Available kernels:
python3 C:Users
aysuAppDataRoamingjupyterkernelspython3
vpython C:ProgramDatajupyterkernelsvpython
But I must have another kernel (which I suppose somehow got deleted) associated with my base environment.
C:Users
aysuDocuments>conda env list
# conda environments:
#
base * C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64
astra_env C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64envsastra_env
bokeh_env C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64envsokeh_env
sound_env C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64envssound_env
tf_env C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64envsf_env
C:Users
aysuAnaconda3
C:Users
aysuAnaconda3envspyforge
opencv_env C:Users
aysuAppDataLocalcondacondaenvsopencv_env
test_env C:Users
aysuAppDataLocalcondacondaenvsest_env
Error
Traceback (most recent call last):
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadoweb.py", line 1699, in _execute
result = await result
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packages
otebookservicessessionshandlers.py", line 72, in post
type=mtype))
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 735, in run
value = future.result()
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packages
otebookservicessessionssessionmanager.py", line 88, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 735, in run
value = future.result()
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packages
otebookservicessessionssessionmanager.py", line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 735, in run
value = future.result()
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packagesornadogen.py", line 209, in wrapper
yielded = next(result)
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libsite-packages
otebookserviceskernelskernelmanager.py", line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_clientmultikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_clientmanager.py", line 240, in start_kernel
self.write_connection_file()
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_clientconnect.py", line 476, in write_connection_file
kernel_name=self.kernel_name
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_clientconnect.py", line 141, in write_connection_file
with secure_write(fname) as f:
File "C:Program Files (x86)Microsoft Visual StudioSharedAnaconda3_64libcontextlib.py", line 81, in __enter__
return next(self.gen)
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_corepaths.py", line 404, in secure_write
win32_restrict_file_to_user(fname)
File "C:Users
aysuAppDataRoamingPythonPython36site-packagesjupyter_corepaths.py", line 359, in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed: The specified procedure could not be found.
See Question&Answers more detail:
os