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 one year ago
Votes Newest

Answers 27


the current diffs

  
  
Posted one year 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 one year 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 one year ago

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

  
  
Posted one year ago

Python 3.8.13

  
  
Posted one year ago

hmm that would explain it failing

  
  
Posted one year ago

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 one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

clearml==1.7.1

  
  
Posted one year ago

wait

  
  
Posted one year 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 one year ago

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

  
  
Posted one year ago

how come the previous gitdiff passed ?

  
  
Posted one year ago

yeah, Friday afternoon

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

I am running a script

  
  
Posted one year ago

python run.py param1 param2

  
  
Posted one year ago

yeah

  
  
Posted one year ago

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

  
  
Posted one year ago

git status gives correct information

  
  
Posted one year 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 one year ago

(latest)

  
  
Posted one year ago

no

  
  
Posted one year ago

OSS version

  
  
Posted one year ago
573 Views
27 Answers
one year ago
one year ago
Tags