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, We Run A Pipeline Using The Pipelinecontroller, When We Do It From

Hey, we run a pipeline using the PipelineController, when we do it from team member 1 computer, we see clearml-agent installing lots of unrelevant packages, and eventually fail. when team member 2 runs it, other packages are being ran, and the task run smoothly
what can cause this problem?

  
  
Posted 2 years ago
Votes Newest

Answers 32


then it works
i opened a new, clean venv just now

  
  
Posted 2 years ago

only clearml probably

  
  
Posted 2 years ago

yeah

  
  
Posted 2 years ago

basically, only test.py need the packages, but for somereason pipeline_test installs them as well

  
  
Posted 2 years ago

I'd appreciate that as there's more info there that might help understand this.

  
  
Posted 2 years ago

for some reason the agent tries to install the locally installed pip packages

  
  
Posted 2 years ago

it is installed as a pip package
but i am not using it in the code

  
  
Posted 2 years ago

Can you please re-post the conf file (without the credentials 🙂 )

  
  
Posted 2 years ago

from which we run the task

  
  
Posted 2 years ago

thank you! i'll try it

  
  
Posted 2 years ago

why those library need to run on a pipelinecontroller task, this task requires no libraries at all

  
  
Posted 2 years ago

the successful, which is aborted for some reason (but at least the enviorment is setup correctly)
the end of it is :

  • urllib3==1.26.15
  • virtualenv==20.23.0
  • wcwidth==0.2.6
  • Werkzeug==2.3.2
  • widgetsnbextension==4.0.7
  • xgboost==1.7.5
  • yarl==1.9.2
    Environment setup completed successfully
    Starting Task Execution:
    2023-04-29 21:41:02
    Process terminated by user
  
  
Posted 2 years ago

You can use Task.ignore_requirements("pywin32") in your code - that should solve it

  
  
Posted 2 years ago

Basically, it looks like the agent installs an outdated pip version and this should fix it, and hopefully install your packages correctly

  
  
Posted 2 years ago

Hi @<1544853695869489152:profile|NonchalantOx99> , can you share the successful and unsuccessful logs?

  
  
Posted 2 years ago

but why does it matter if i ran it on a remote agent?

  
  
Posted 2 years ago

not using it in the code

  
  
Posted 2 years ago

i reproduced it here:

  
  
Posted 2 years ago

OK, we'll take a look

  
  
Posted 2 years ago

Are you sure you're not using pywin32? The ClearML SDK does static code analysis and should only store the packages you reference directly

  
  
Posted 2 years ago

the unsuccesslful:
Using cached meteostat-1.6.5-py3-none-any.whl (31 kB)
Requirement already satisfied: neuralprophet==0.5.3 in /usr/local/lib/python3.9/site-packages (from -r /tmp/cached-reqs58y_jg9f.txt (line 9)) (0.5.3)
Requirement already satisfied: numpy==1.23.5 in /usr/local/lib/python3.9/site-packages (from -r /tmp/cached-reqs58y_jg9f.txt (line 10)) (1.23.5)
Requirement already satisfied: pandas==1.5.3 in /usr/local/lib/python3.9/site-packages (from -r /tmp/cached-reqs58y_jg9f.txt (line 11)) (1.5.3)
ERROR: Could not find a version that satisfies the requirement pywin32==305 (from -r /tmp/cached-reqs58y_jg9f.txt (line 12)) (from versions: none)
ERROR: No matching distribution found for pywin32==305 (from -r /tmp/cached-reqs58y_jg9f.txt (line 12))
clearml_agent: ERROR: Could not install task requirements!
Command '['/root/.clearml/venvs-builds/3.9/bin/python', '-m', 'pip', '--disable-pip-version-check', 'install', '-r', '/tmp/cached-reqs58y_jg9f.txt']' returned non-zero exit status 1.
2023-04-29 21:49:50
Process failed, exit code 1

  
  
Posted 2 years ago

And what are the installed packages showing in the task UI panel?

  
  
Posted 2 years ago

Hi @<1544853695869489152:profile|NonchalantOx99> ! In your clearml.conf , try to set, at the end of the whole file, outside any curly brackets, agent.package_manager.pip_version: "23.1.2"

  
  
Posted 2 years ago

just a sec

  
  
Posted 2 years ago

So the question is why did pywin32 == 305 got into the installed packages - are you using that in your code?

  
  
Posted 2 years ago

what happens if you uninstall it and than try to run the code?

  
  
Posted 2 years ago

Also, It would help to see the clearml.conf file from the local environment that started running this task

  
  
Posted 2 years ago

do you want the entire log files? (it is a pipeline, and i can't seem to find the "Task" itself, to download the logs)

  
  
Posted 2 years ago

and then it works, doesn't try to install any other packages

  
  
Posted 2 years ago

Well, what are the local libraries? obviously you're using some of them, so they need to be there

  
  
Posted 2 years ago