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, There Is A Bug With Get_Logger Here:

Hi, there is a bug with get_logger here: https://github.com/allegroai/clearml/blob/master/clearml/debugging/log.py#L111
I got to it through the screenshot. I use Task.get_tasks() which uses it indirectly.
Anywho, it's not your code bug but it seems to be python's own bug: https://bugs.python.org/issue17735
Please consider using another way to get the path for logger, as inspection.stack() is bugged.

  
  
Posted 3 years ago
Votes Newest

Answers 10


Hi SmarmySeaurchin8 , Thanks, we will check that, can you share the Python version you use? 3.6?

  
  
Posted 3 years ago

SmarmySeaurchin8 could you test with the latest RC
pip install clearml==0.17.5rc2

  
  
Posted 3 years ago

3.6.6

  
  
Posted 3 years ago

AgitatedDove14 Quite hard for me to try this right now. but I've validated that the relevant code segments are untouched between the versions. (at least current master branch at the ClearML repo)

  
  
Posted 3 years ago

Quite hard for me to try this right

👍
How do I reproduce it ?

  
  
Posted 3 years ago

Sadly, I don't know. It started happening randomly to me as I used Task.get_tasks() frequently. the call to call_logger makes it all go wrong. I'd suggest trying to call it from several stack traces (i.e from inside different functions, that call other functions from one file or another, etc..)

  
  
Posted 3 years ago

It happened again lately and I got:
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/site-packages/trains/backend_interface/util.py", line 76, in get_single_result
log = get_logger()
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/site-packages/trains/debugging/log.py", line 111, in get_logger
path = path or os.path.abspath((inspect.stack()[1])[1])
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 1494, in stack
return getouterframes(sys._getframe(1), context)
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 1471, in getouterframes
frameinfo = (frame,) + getframeinfo(frame, context)
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 1441, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 725, in getmodule
file = getabsfile(object, _filename)
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/inspect.py", line 709, in getabsfile
return os.path.normcase(os.path.abspath(_filename))
File "/Remote/shared/conda_envs/tf14_tp099/lib/python3.6/posixpath.py", line 376, in abspath
cwd = os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

  
  
Posted 3 years ago

Never saw such errors before

  
  
Posted 3 years ago

(And God knows I've seen things)

  
  
Posted 3 years ago

LOL, Let me look into it, could it be the calling file is somehow deleted ?

  
  
Posted 3 years ago