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 2 years 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 2 years 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 2 years ago

yes but its limited

  
  
Posted 2 years 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 2 years ago

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

  
  
Posted 2 years ago

Sure thing

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

Do you have the full exception trace?

  
  
Posted 2 years ago

Python 3.7.10 and clearml==1.7.0

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

hey there, it happens in the task pod

  
  
Posted 2 years ago

kubernetes cluster

  
  
Posted 2 years ago

Yes that fixed it, thanks!

  
  
Posted 2 years ago

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

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

  
  
Posted 2 years ago
1K Views
14 Answers
2 years ago
one year ago
Tags