Skip to content

Uncaught exception due to missing file #352

@reservoirinvest

Description

@reservoirinvest

Uncaught exception GET /jupyterlab_code_formatter

  File "~\python\nse\.venv\Lib\site-packages\tornado\web.py", line 1788, in _execute
    result = method(*self.path_args, **self.path_kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\python\nse\.venv\Lib\site-packages\tornado\web.py", line 3301, in wrapper
    return method(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\python\nse\.venv\Lib\site-packages\jupyterlab_code_formatter\handlers.py", line 18, in get
    "formatters": {
                  ^
  File "~\python\nse\.venv\Lib\site-packages\jupyterlab_code_formatter\handlers.py", line 20, in <dictcomp>
    "enabled": formatter.cached_importable if use_cache else formatter.importable,
                                                             ^^^^^^^^^^^^^^^^^^^^
  File "~\python\nse\.venv\Lib\site-packages\jupyterlab_code_formatter\formatters.py", line 364, in importable
    package_location = subprocess.run(
                       ^^^^^^^^^^^^^^^
  File "~\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "~\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

[W 2024-07-30 01:55:58.738 ServerApp] wrote error: 'Unhandled error'
Traceback (most recent call last):
File "\python\nse.venv\Lib\site-packages\tornado\web.py", line 1788, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
\python\nse.venv\Lib\site-packages\tornado\web.py", line 3301, in wrapper
return method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\python\nse.venv\Lib\site-packages\jupyterlab_code_formatter\handlers.py", line 18, in get
"formatters": {
^
File "
\python\nse.venv\Lib\site-packages\jupyterlab_code_formatter\handlers.py", line 20, in
"enabled": formatter.cached_importable if use_cache else formatter.importable,
^^^^^^^^^^^^^^^^^^^^
File "\python\nse.venv\Lib\site-packages\jupyterlab_code_formatter\formatters.py", line 364, in importable
package_location = subprocess.run(
^^^^^^^^^^^^^^^
File "
\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "
\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions