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
Hey All, Is There Any Reason The Python Sdk

Hey all, is there any reason the python sdk clearml would cause subprocess issues? I'm calling returncode = Popen(cmd).wait() and getting
File "/usr/lib64/python3.7/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntaxIt only happens in the clearml environment, works fine local.

  
  
Posted one year ago
Votes Newest

Answers 14


BoredHedgehog47 could it be "python" python points to python 2.7 inside your container, as opposed to python3 on your machine
(this error is python2 trying to run python 3 code)
https://stackoverflow.com/questions/20555517/using-multiple-versions-of-python
"Training classifier with command:\n python -m sfi.imagery.models.bbox_predictorv2.train

  
  
Posted one year ago

hey there, it happens in the task pod

  
  
Posted one year ago

It seems like the clearml python sdk might have issues when a subprocess is opened?

  
  
Posted one year ago

hmm that does look really helpful! Let me see if I can fix this using that info! thankyou!

  
  
Posted one year ago

Do you have the full exception trace?

  
  
Posted one year ago

Sure thing

  
  
Posted one year ago

Yes that fixed it, thanks!

  
  
Posted one year ago

Python 3.7.10 and clearml==1.7.0

  
  
Posted one year ago

yes but its limited

  
  
Posted one year ago

Hi BoredHedgehog47 ! What version of ClearML and Python3.7 are you using?

  
  
Posted one year ago

{"asctime": "2022-09-28 18:45:55,353", "levelname": "INFO", "name": "root", "module": "ldc_train_end_to_end", "threadName": "MainThread", "message": "Training classifier with command:\npython -m sfi.imagery.models.bbox_predictorv2.train ./sfi/imagery/models/training/train_config.json", "filename": "ldc_train_end_to_end.py", "funcName": "train_model"} File "/usr/lib64/python3.7/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax

  
  
Posted one year ago

kubernetes cluster

  
  
Posted one year ago

It only happens in the clearml environment, works fine local.

Hi BoredHedgehog47
what do you mean by "in the clearml environment" ?

  
  
Posted one year ago

Basically, when I have the clearml sdk imported into my python module and I Task.init I'm getting that error only when running the experiment in the task pod.

  
  
Posted one year ago
635 Views
14 Answers
one year ago
one year ago
Tags