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
https://clear.ml/docs
Apache License 2.0
5.69k stars 655 forks source link

task.set_packages do not recognize requirements #1193

Open andruum opened 9 months ago

andruum commented 9 months ago

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

eugen-ajechiloae-clearml commented 9 months ago

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.