jupyter_console icon indicating copy to clipboard operation
jupyter_console copied to clipboard

Error when running console

Open duytrung opened this issue 8 years ago • 3 comments

I have the following error run the jupyter console:

with kwargs:                                                                                                                 

{'stdin': -1, 'stdout': None, 'stderr': None, 'cwd': None}

Traceback (most recent call last):
File "C:\Anaconda\Scripts\jupyter-console-script.py", line 5, in
sys.exit(jupyter_console.app.main())
File "C:\Anaconda\lib\site-packages\jupyter_core\application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Anaconda\lib\site-packages\traitlets\config\application.py", line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "C:\Anaconda\lib\site-packages\traitlets\config\application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "C:\Anaconda\lib\site-packages\jupyter_console\app.py", line 141, in initialize
self.init_shell()
File "C:\Anaconda\lib\site-packages\jupyter_console\app.py", line 109, in init_shell
JupyterConsoleApp.initialize(self)
File "C:\Anaconda\lib\site-packages\jupyter_client\consoleapp.py", line 334, in initialize
self.init_kernel_manager()
File "C:\Anaconda\lib\site-packages\jupyter_client\consoleapp.py", line 288, in init_kernel_manager
self.kernel_manager.start_kernel(**kwargs)
File "C:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 257, in start_kernel
**kw)
File "C:\Anaconda\lib\site-packages\jupyter_client\manager.py", line 203, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:\Anaconda\lib\site-packages\jupyter_client\launcher.py", line 128, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Anaconda\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C:\Anaconda\lib\subprocess.py", line 992, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

I use conda forge channel for my study.

Thanks

duytrung avatar Aug 04 '17 08:08 duytrung

If you run jupyter kernelspec list in a command prompt, what does it show you?

takluyver avatar Aug 04 '17 09:08 takluyver

>  jupyter kernelspec list
Available kernels:
  python3    C:\Anaconda\share\jupyter\kernels\python3

I use python 3 only

duytrung avatar Aug 05 '17 10:08 duytrung

That path should be a folder with a file in it called kernel.json - can you have a look at that file in a text editor and see what it contains?

takluyver avatar Aug 05 '17 13:08 takluyver