vors / jupyter-powershell

PowerShell language kernel for Jupyter
MIT License
132 stars 26 forks source link

FileNotFoundException is thrown for any PS commands #36

Closed dilshaat closed 4 years ago

dilshaat commented 4 years ago

After starting the Powershell Kernel, and any powershell commands are throwing the FileNoteFoundException:

Traceback (most recent call last):
  File "C:\Python38\lib\site-packages\powershell_kernel\kernel.py", line 62, in do_execute
    self.__createProxy()
  File "C:\Python38\lib\site-packages\powershell_kernel\kernel.py", line 51, in __createProxy
    repl = subprocess_repl.SubprocessRepl([powershell_command, '-noninteractive', '-noprofile', '-File', '-'])
  File "C:\Python38\lib\site-packages\powershell_kernel\subprocess_repl.py", line 28, in __init__
    self.popen = Popen(cmd, bufsize=1,
  File "C:\Python38\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Python38\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
dilshaat commented 4 years ago

It turned out that I did not run:

python -m powershell_kernel.install

This is resolved. Closing.