Unanswered
When Trying To Run My Agent With Poetry As Package Manager (Could Also Be With Pip, But Definitely With Poetry), Strange Things Seem To Happen When Trying To Execute A Pipeline:
Traceback (most recent call last):
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/commands/worker.py", line 3221, in install_requirements_for_package_api
package_api.load_requirements(cached_requirements)
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/package/pip_api/venv.py", line 41, in load_requirements
super(VirtualenvPip, self).load_requirements(requirements)
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/package/pip_api/system.py", line 61, in load_requirements
self.install_from_file(path)
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/package/pip_api/system.py", line 35, in install_from_file
self.run_with_env(('install', '-r', path) + self.install_flags(), cwd=self.cwd)
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/package/pip_api/system.py", line 94, in run_with_env
return (command.get_output if output else command.check_call)(stdin=DEVNULL, env=env, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/process.py", line 198, in check_call
return self.call_subprocess(subprocess.check_call, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/helper/process.py", line 245, in call_subprocess
return func(list(self), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/clearml_user/.clearml/venvs-builds/3.11/bin/python', '-m', 'pip', '--disable-pip-version-check', 'install', '-r', '/tmp/cached-reqswqel5t8m.txt']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/__main__.py", line 87, in <module>
sys.exit(main())
^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/__main__.py", line 83, in main
return run_command(parser, args, command_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/__main__.py", line 46, in run_command
return func(**args_dict)
^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/commands/base.py", line 63, in newfunc
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/commands/worker.py", line 2676, in execute
self.install_requirements(
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/commands/worker.py", line 3160, in install_requirements
return self.install_requirements_for_package_api(execution, repo_info, requirements_manager,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/clearml/.venv/lib/python3.11/site-packages/clearml_agent/commands/worker.py", line 3225, in install_requirements_for_package_api
raise ValueError("Could not install task requirements!\n{}".format(e))
ValueError: Could not install task requirements!
Command '['/home/clearml_user/.clearml/venvs-builds/3.11/bin/python', '-m', 'pip', '--disable-pip-version-check', 'install', '-r', '/tmp/cached-reqswqel5t8m.txt']' returned non-zero exit status 1.
39 Views
0
Answers
3 months ago
3 months ago