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, Great Product! I'Ve Installed Trains Agent On A Python3 Venv, But When I Run A Script On The Worker, It Calls Python2 Instead Of Python 3. How To Change It?

Hey, great Product! I've installed trains agent on a python3 venv, but when I run a script on the worker, it calls python2 instead of python 3. How to change it?

  
  
Posted 4 years ago
Votes Newest

Answers 9


Thanks for the quick response, Martin! The original experiment was executed with python3.7

  
  
Posted 4 years ago

still getting /cs/usr/gal.hyams/.trains/venvs-builds/3.7/bin/python2

  
  
Posted 3 years ago

Hi VivaciousWalrus99
Could you attach the log of the run ?
By default it will use the python it is running with.
Any chance the original experiment was executed with python2 ?

  
  
Posted 4 years ago

Thanks Martin. It did not work. I've tried changing my user the default python and pip to 3 as well: ln -s which python3 ~/bin/python..

  
  
Posted 3 years ago

VivaciousWalrus99 any chance the original Task was executed with python2 ?
what do you have for:
ls -la /cs/usr/gal.hyams/.trains/venvs-builds/3.7/bin/

  
  
Posted 3 years ago

AgitatedDove14

  
  
Posted 3 years ago

The original was executed with python3. ls -la /cs/usr/gal.hyams/.trains/venvs-builds/3.7/bin/ Contines python2

  
  
Posted 3 years ago

New python executable in /cs/labs/gavish/gal.hyams/.clearml/venvs-builds/3.7/bin/python2 Also creating executable in /cs/labs/gavish/gal.hyams/.clearml/venvs-builds/3.7/bin/python Installing setuptools, pkg_resources, pip, wheel... 2021-01-11 14:46:23 done.Running virtualenv with interpreter /usr/bin/python2

  
  
Posted 3 years ago

VivaciousWalrus99
Yes this is odd:
1608392232071 spectralab:gpu0 DEBUG New python executable in /cs/usr/gal.hyams/.trains/venvs-builds/3.7/bin/python2So it thinks it has python v3.7 but it is using python2 in the venv...
In your trains.conf file, set agent.python_binary to the python3.7 binary. It should be something like:
agent.python_binary=/path/to/python/python3.7

  
  
Posted 4 years ago
1K Views
9 Answers
4 years ago
one year ago
Tags