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 Everyone. I Have A Problem With Pipeline. I Use

Hi everyone. I have a problem with pipeline. I use Pipeline.Decorator for building pipeline. I add repo then try to call library/funciton from this repo but I can't. Can you help me please?

` @PipelineDecorator.component(cache=True, return_values=['signatures'],
docker="my_docker_address",
repo='my_repo', repo_branch='master')
def get_signatures(my_args):

import LIBRARY_IN_REPO
from clearml import Dataset

.... `No module named LIBRARY_IN_REPO
  
  
Posted one year ago
Votes Newest

Answers 9


Hi Max! Yes it is root of the repo. I need file that place root_repo/library_name/file.py. I run pipeline with an agent

  
  
Posted one year ago

Hmm that sounds okay to me, could you send the clearml log with the ‘No module named ..’ error?

  
  
Posted one year ago

BTW thank you, I will check directory

  
  
Posted one year ago

Additionally, I have found it helpful to take a look into the agent’s working directory. With the python error should be the location of the script, and it may tell you a bit more by browsing that directory

  
  
Posted one year ago

Thank you! I will try and share result with you too 🙂 Good ideas

  
  
Posted one year ago

It seems like the actual import statement worked, since there is no ‘ImportError: no module named x’

  
  
Posted one year ago

Just to be sure, you could download the repo and put this script in the root, and use the PipelineDecorator.debug_pipeline() option to run it locally and see if the code works like you wanted 🙂

  
  
Posted one year ago

Traceback (most recent call last): File "/root/.clearml/venvs-builds/3.8/code/get_signatures.py", line 34, in <module> results = get_signatures(**kwargs) File "/root/.clearml/venvs-builds/3.8/code/get_signatures.py", line 9, in get_signatures speaker_module = LIBRARY_IN_REPO(clearml_id=model) NameError: name 'LIBRARY_IN_REPO' is not defined

  
  
Posted one year ago

Hi Chingiz! Is the LIBRARY_IN_REPO in the root of the repo? How do you run this pipeline (with run_locally, debug_pipeline or with an agent)? And lastly, have you checked the clearml logs to see if the repo was correctly pulled?
I ask these questions because the pythonpath is the root of the repo and the repo can only be used when running the pipeline with an agent, IIRC

  
  
Posted one year ago
1K Views
9 Answers
one year ago
one year ago
Tags
Similar posts