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 Am New To Clearml: When I Run An Experiment In A Shell (Having A Single Line Of Task Definition) I Am Getting This Error:

Hi, I am new to ClearML: When I run an experiment in a shell (having a single line of Task definition) I am getting this error:

clearml.Repository Detection - WARNING - Can't get diff information for git repo in <directory>

directory is not the repo directory but one level lower.

  
  
Posted 2 years ago
Votes Newest

Answers 27


interesting if I run the script from the repo main directory with
python code/run.py
it still gives me the same error message

clearml.Repository Detection - WARNING - Can't get diff information for git repo in repo/code

  
  
Posted 2 years ago

how come the previous gitdiff passed ?

  
  
Posted 2 years ago

ConvolutedSealion94 what's your python version?
(the error itself is clearml failing to execute git diff, or read the output, I suspect unicode or something, assuming you were able to run the same command manually)

  
  
Posted 2 years ago

Hi ConvolutedSealion94 , are you running a script or you just went into the python interpreter and ran Task.init()

  
  
Posted 2 years ago

What version of ClearML are you using? Is there anything special about this git repository?

  
  
Posted 2 years ago

python run.py param1 param2

  
  
Posted 2 years ago

yeah, Friday afternoon

  
  
Posted 2 years ago

I am running a script

  
  
Posted 2 years ago

the current diffs

  
  
Posted 2 years ago

And are you running inside a repository or is it a stand alone script?

  
  
Posted 2 years ago

yeah

  
  
Posted 2 years ago

AgitatedDove14 , I think gitdiff wasn't ran. I think Laszlo ran git status manually, not git diff

  
  
Posted 2 years ago

git-nbdiffdriver diff: git-nbdiffdriver: command not found fatal: external diff died, stopping at ...

  
  
Posted 2 years ago

no

  
  
Posted 2 years ago

OSS version

  
  
Posted 2 years ago

ConvolutedSealion94 if you do bash:
cd ~/work/repo/code/ git statuswhat are you getting ?

  
  
Posted 2 years ago

git status gives correct information

  
  
Posted 2 years ago

This was not something I was expecting to break.

If you enable nbdime globally and switch virtual environments, then git diff will fail.

  
  
Posted 2 years ago

nah, it runs about 1 minute of standards SQL->dataframes->xgboost pipeline with some file saving

  
  
Posted 2 years ago

hmm that would explain it failing

  
  
Posted 2 years ago

wait

  
  
Posted 2 years ago

Python 3.8.13

  
  
Posted 2 years ago

(latest)

  
  
Posted 2 years ago

but I am one level lower than top. so:

~/work/repo is the main repo dir

~/work/repo/code/run.py and I am running python run.py in ~/work/repo/code

  
  
Posted 2 years ago

ConvolutedSealion94 , what if you add a sleep time of 15-20 seconds to the end of the script? I'm guessing that your entire script is just
from clearml import Task task = Task.init()Correct?

  
  
Posted 2 years ago

python='python3' ~/anaconda3/envs/.venv/bin/python3

  
  
Posted 2 years ago

clearml==1.7.1

  
  
Posted 2 years ago
978 Views
27 Answers
2 years ago
one year ago
Tags