Hi,
I am new to jupyter notebook and I have just started learning ML. Since I have started to use jupyter notebook I have seen that my cells don’t run! I press shift-enter and rather than the targeted cell running, the targeted cell moves down. It shows a kernel error on the top right and when I click it I get this error message:
Traceback (most recent call last):
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\web.py”, line 1703, in _execute
result = await result
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\shiva\anaconda3\lib\site-packages\notebook\services\sessions\handlers.py”, line 69, in post
model = yield maybe_future(
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\shiva\anaconda3\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 “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File “C:\Users\shiva\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py”, line 100, in start_kernel_for_session
kernel_id = yield maybe_future(
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 735, in run
value = future.result()
File “C:\Users\shiva\anaconda3\lib\site-packages\tornado\gen.py”, line 209, in wrapper
yielded = next(result)
File “C:\Users\shiva\anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py”, line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py”, line 186, in start_kernel
km.start_kernel(**kwargs)
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_client\manager.py”, line 304, in start_kernel
kernel_cmd, kw = self.pre_start_kernel(**kw)
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_client\manager.py”, line 251, in pre_start_kernel
self.write_connection_file()
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_client\connect.py”, line 468, in write_connection_file
self.connection_file, cfg = write_connection_file(self.connection_file,
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_client\connect.py”, line 138, in write_connection_file
with secure_write(fname) as f:
File “C:\Users\shiva\anaconda3\lib\contextlib.py”, line 113, in enter
return next(self.gen)
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_core\paths.py”, line 435, in secure_write
win32_restrict_file_to_user(fname)
File “C:\Users\shiva\anaconda3\lib\site-packages\jupyter_core\paths.py”, line 361, in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed while importing win32api: %1 is not a valid Win32 application.
I searched online and found I had to reinstall pywin32 and run this command:
python.exe Scripts/pywin32_postinstall.py -install
But it shows me this error:
(base) PS C:\Users\shiva\anaconda3\Scripts> cd C:\Users\shiva\anaconda3\Scripts\pywin32_postinstall.py
cd : Cannot find path ‘C:\Users\shiva\anaconda3\Scripts\pywin32_postinstall.py’ because it does not exist.
At line:1 char:1
- cd C:\Users\shiva\anaconda3\Scripts\pywin32_postinstall.py
-
+ CategoryInfo : ObjectNotFound: (C:\Users\shiva\..._postinstall.py:String) [Set-Location], ItemNotFoundE xception + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
Pls help me, I am new to jupyter notebook!