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 All, I'M Having A Problem Where Theclearml Venv Does Not Get The Pythonpath From Local Machine. This Led To A Very Ugly And Non-Pythonic Temporal Fix Using Sys.Path.Append In Imports. How Do I Make Sure The Clearml Venv Gets The Correct Pythonpath On C

Hi all, I'm having a problem where theclearml venv does not get the PYTHONPATH from local machine. this led to a very ugly and non-pythonic temporal fix using sys.path.append in imports.
how do I make sure the clearml venv gets the correct PYTHONPATH on creation (either by accessing PYTHONPATH or by hardcoded path string in config, as long as it works)?

  
  
Posted 11 months ago
Votes Newest

Answers 5


@<1639799308809146368:profile|TritePigeon86> you can add the python path to the agent's configuration, see here: None

  
  
Posted 11 months ago

Hi @<1523702000586330112:profile|FierceHamster54> , @<1523701087100473344:profile|SuccessfulKoala55> and @<1523701070390366208:profile|CostlyOstrich36> ,

I have a machine (for simplicity, let's say just one machine with ubuntu) with multiple repositories of my own packages (let's call them my-util and my-service), python and clearml. path to my-util is defined in the system PYTHONPATH. my-service is importing utils from-my-util.
On the same machine, running a code from my-service using python works. running the same code using an agent fails on imports from my-util, saying it cannot find my-util. The agent is using clearml temp venv (the one stored under /.clearml/ folder).

My temporary (and very non-pythonic) solution was adding

import os
import sys

sys.path.append(os.path.join(git_path,my_utils_repository_path))

to the top of my code.

I'm looking a better solution

  
  
Posted 11 months ago

Are you executing your script using the right python interpreter ?

/venv/bin/python my_clearml_script.py
  
  
Posted 11 months ago

Hi @<1639799308809146368:profile|TritePigeon86> , I'm not sure I understand, can you please elaborate on exactly what you're doing?

  
  
Posted 11 months ago

@<1639799308809146368:profile|TritePigeon86> where is the pythonpath defined, and how are you running the task? Is it using an agent?

  
  
Posted 11 months ago
730 Views
5 Answers
11 months ago
11 months ago
Tags