allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution

Home Page:https://clear.ml/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

task.set_packages do not recognize requirements

andruum opened this issue · comments

Describe the bug

When I try to set packages, it gives me this error:

File "train.py", line 102, in train
task.set_packages(packages=Path(root/'requirements.txt'))
File"\Lib\site-packages\clearml\task.py", line 1595, in set_packages
self._update_requirements(packages or "")
File "Lib\site-packages\clearml\backend_interface\task\task.py", line 2546, in _update_requirements
requirements[key] = '\n'.join(requirements[key])

The file exists.

Expected behaviour

Packages should be added to the task.

Environment

  • Server type (app.clear.ml)
  • ClearML SDK Version clearml == 1.14.1
  • Python Version: 3.11
  • OS (Windows)

Hi @andruum ! Looks like using Path for packages is bugged. You could simply do task.set_packages(packages=Path(root/'requirements.txt').as_posix()) in the meantime, until we fix this issue.