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 11 months 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 11 months ago

kubernetes cluster

  
  
Posted 11 months 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 11 months ago

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

  
  
Posted 11 months ago

yes but its limited

  
  
Posted 11 months ago

Yes that fixed it, thanks!

  
  
Posted 11 months ago

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

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

  
  
Posted 11 months ago

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

  
  
Posted 11 months ago

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

  
  
Posted 11 months ago

Do you have the full exception trace?

  
  
Posted 11 months ago

Python 3.7.10 and clearml==1.7.0

  
  
Posted 11 months ago

hey there, it happens in the task pod

  
  
Posted 11 months ago

Sure thing

  
  
Posted 11 months 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 11 months ago
231 Views
14 Answers
11 months ago
8 months ago
Tags