GreasyPenguin14 thank you! that will make our life a lot easier 🙂
No problems with this example, I will try to create a reproducible example
GreasyPenguin14 could you test with the matplotlib lib example ? (I cannot reproduce it and it seems like something to do with pycharm and matplotlib backend)
https://github.com/allegroai/clearml/blob/master/examples/frameworks/matplotlib/matplotlib_example.py
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
upgrading to? 2020.3.3 is the latest version? https://www.jetbrains.com/pycharm/download/other.html
GreasyPenguin14 we never had troubles with Task.init
(or any other clearml calls) and working with the pycharm debugger, we use it quite extensively ...
Actually on a very similar setup...
Could you send the full log?
Or maybe a code snippet to reproduce this behavior ?
(We did notice they fixed a few issues with the debugger in 2020.3.3 so it's worth upgrading)
it is the same with rc4. Under the variables tab it keeps hanging on 'collecting data...' OS: Ubuntu 18.04, PyCharm CE 2020.3
GreasyPenguin14 could you test with the 0.17.5rc4
?
Also what's the PyCharm / OS?