From ee21944f6b29f227fa098f5f218aa43f84a11489 Mon Sep 17 00:00:00 2001 From: clearml <> Date: Wed, 2 Apr 2025 14:42:02 +0300 Subject: [PATCH] Fix UV pip freeze fails --- clearml_agent/helper/package/uv_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml_agent/helper/package/uv_api.py b/clearml_agent/helper/package/uv_api.py index e2e4f9a..926444d 100644 --- a/clearml_agent/helper/package/uv_api.py +++ b/clearml_agent/helper/package/uv_api.py @@ -247,7 +247,7 @@ class UvAPI(VirtualenvPip): # there is a bug so we have to call pip to get the freeze because UV will return the wrong list # packages = self.run_with_env(('freeze',), output=True).splitlines() packages = self.lock_config.get_run_argv( - "pip", "freeze", "--python", str(Path(self.path) / "bin" / "python"), cwd=self.lockfile_path).get_output().splitlines() + "pip", "freeze", cwd=self.lockfile_path).get_output().splitlines() # list clearml_agent as well # packages_without_program = [package for package in packages if PROGRAM_NAME not in package] return {'pip': packages}