Traceback (most recent call last):

 "(...)/site-packages/spyderlib/plugins/editor.py", line 2082, in edit_run_configurations
self.run_file()

 "(...)/site-packages/spyderlib/plugins/editor.py", line 2129, in run_file
self.re_run_file()

 "(...)/site-packages/spyderlib/plugins/editor.py", line 2172, in re_run_file
systerm, post_mortem)

 "(...)/site-packages/spyderlib/spyder.py", line 2483, in open_external_console
interact, debug, python_args)

 "(...)/site-packages/spyderlib/utils/programs.py", line 183, in run_python_script_in_terminal
cwd=wdir)

 "(...)/site-packages/spyderlib/utils/programs.py", line 64, in run_program
subprocess.Popen([path]+args, cwd=cwd)

 "(...)/subprocess.py", line 950, in __init__
restore_signals, start_new_session)

 "(...)/subprocess.py", line 1544, in _execute_child
raise child_exception_type(errno_num, err_msg)
NotFoundError: [Errno 2] No such file or directory: ''
Traceback (most recent call last):

 "C:\Users\aflap\Anaconda3\envs\PythonPractice\lib\site-packages\spyder\plugins\editor\panels\codefolding.py", line 256, in paintEvent
self._draw_fold_region_background(block, painter)

 "C:\Users\aflap\Anaconda3\envs\PythonPractice\lib\site-packages\spyder\plugins\editor\panels\codefolding.py", line 300, in _draw_fold_region_background
end = self.folding_regions[start]KeyError: 2