Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Noticed That Clearml Does Not Work Together With The Debugger In Pycharm. Everytime I Use The Debugger I Have To First Comment Out The Clearml Code. Is It Possible To Solve This?

Hi, I noticed that clearml does not work together with the debugger in PyCharm. Everytime I use the debugger I have to first comment out the clearml code. Is it possible to solve this?

  
  
Posted 3 years ago
Votes Newest

Answers 11


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

  
  
Posted 3 years ago

No problems with this example, I will try to create a reproducible example

  
  
Posted 3 years ago

it is the same with rc4. Under the variables tab it keeps hanging on 'collecting data...' OS: Ubuntu 18.04, PyCharm CE 2020.3

  
  
Posted 3 years ago

GreasyPenguin14 could you test with the 0.17.5rc4 ?
Also what's the PyCharm / OS?

  
  
Posted 3 years ago

pip install clearml==0.17.5rc4

  
  
Posted 3 years ago

how do I install the RC?

  
  
Posted 3 years ago

upgrading to? 2020.3.3 is the latest version? https://www.jetbrains.com/pycharm/download/other.html

  
  
Posted 3 years ago

GreasyPenguin14 thank you! that will make our life a lot easier 🙂

  
  
Posted 3 years ago

This is the full log

  
  
Posted 3 years ago

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)

  
  
Posted 3 years ago

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

  
  
Posted 3 years ago
1K Views
11 Answers
3 years ago
one year ago
Tags