Backend TkAgg is interactive backend. Turning interactive mode on. Traceback (most recent call last): File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 747, in trace_dispatch self.do_wait_suspend(thread, frame, event, arg) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 144, in do_wait_suspend self._args[0].do_wait_suspend(*args, **kwargs) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1141, in do_wait_suspend self._do_wait_suspend(thread, frame, event, arg, suspend_type, from_this_thread) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1148, in _do_wait_suspend self._activate_mpl_if_needed() File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 725, in _activate_mpl_if_needed activate_function = self.mpl_modules_for_patching.pop(module) KeyError: 'matplotlib.pyplot' Traceback (most recent call last): File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 2167, in <module> main() File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 2158, in main globals = debugger.run(setup['file'], None, None, is_module) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1470, in run return self._exec(is_module, entry_point_fn, module_name, file, globals, locals) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1477, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/derk/rndeep/rndeep/main_scripts/cvf_example.py", line 535, in <module> main(path_to_parameterfile=sys.argv[1]) File "/home/derk/rndeep/rndeep/main_scripts/cvf_example.py", line 102, in main results = run_cvf(saver, studies, parameters, model_wrapper, logger) File "/home/derk/rndeep/rndeep/main_scripts/cvf_example.py", line 128, in run_cvf script_path = os.path.dirname(os.path.abspath(_file_)) File "/home/derk/rndeep/rndeep/main_scripts/cvf_example.py", line 128, in run_cvf script_path = os.path.dirname(os.path.abspath(_file_)) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 747, in trace_dispatch self.do_wait_suspend(thread, frame, event, arg) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 144, in do_wait_suspend self._args[0].do_wait_suspend(*args, **kwargs) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1141, in do_wait_suspend self._do_wait_suspend(thread, frame, event, arg, suspend_type, from_this_thread) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1148, in _do_wait_suspend self._activate_mpl_if_needed() File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 725, in _activate_mpl_if_needed activate_function = self.mpl_modules_for_patching.pop(module) KeyError: 'matplotlib.pyplot' Traceback (most recent call last): File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 747, in trace_dispatch self.do_wait_suspend(thread, frame, event, arg) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 144, in do_wait_suspend self._args[0].do_wait_suspend(*args, **kwargs) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1141, in do_wait_suspend self._do_wait_suspend(thread, frame, event, arg, suspend_type, from_this_thread) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1156, in _do_wait_suspend time.sleep(0.01) SystemError: exception SystemExit() not a BaseException subclass Traceback (most recent call last): File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 470, in _call_ ).trace_dispatch(frame, event, arg) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 747, in trace_dispatch self.do_wait_suspend(thread, frame, event, arg) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_frame.py", line 144, in do_wait_suspend self._args[0].do_wait_suspend(*args, **kwargs) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1141, in do_wait_suspend self._do_wait_suspend(thread, frame, event, arg, suspend_type, from_this_thread) File "/snap/pycharm-community/226/plugins/python-ce/helpers/pydev/pydevd.py", line 1156, in _do_wait_suspend time.sleep(0.01) SystemError: exception SystemExit() not a BaseException subclass