I think the issue is that the host is not trusted... it looks like it looks into the index
The package on my index is called data-service-client
, see the log below:Looking in indexes:
,
WARNING: The repository located at unicorn is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host unicorn'. ERROR: Could not find a version that satisfies the requirement data-service-client==1.0.0 (from -r /tmp/cached-reqs1h8bd_gt.txt (line 2)) (from versions: none) ERROR: No matching distribution found for data-service-client==1.0.0 (from -r /tmp/cached-reqs1h8bd_gt.txt (line 2)) clearml_agent: ERROR: Could not install task requirements! Command '['/root/.clearml/venvs-builds/3.8/bin/python', '-m', 'pip', '--disable-pip-version-check', 'install', '-r', '/tmp/cached-reqs1h8bd_gt.txt', '--extra-index-url', '
']' returned non-zero exit status 1.
SuccessfulKoala55 I can't get it to work... I tried using the pip conf locally and it works, but the agent doesn't seem to be able to install the package
You can add it there as well, depends on where you need to use it
do I need to set the extra_index_url
in clearml.conf
as well?
Something like:agent.extra_docker_shell_script = [ "echo \"[global]\" >> /root/.pip/pip.conf", "echo \"trusted-host = hostname.com\" >> /root/.pip/pip.conf" ]
hiya Jake, how do I inject this with the extra_docker_shell_script
setting?
Hi ElegantCoyote26 , you can add this in the default ~/.pip/pip.conf
file (see https://stackoverflow.com/questions/59287824/specifying-multiple-trusted-hosts-in-pip-conf ). This can be easily injected into the docker container using the extra_docker_shell_script
setting for the agent