Hi @<1523702000586330112:profile|FierceHamster54> , @<1523701087100473344:profile|SuccessfulKoala55> and @<1523701070390366208:profile|CostlyOstrich36> ,
I have a machine (for simplicity, let's say just one machine with ubuntu) with multiple repositories of my own packages (let's call them my-util and my-service), python and clearml. path to my-util is defined in the system PYTHONPATH. my-service is importing utils from-my-util.
On the same machine, running a code from my-service using python works. running the same code using an agent fails on imports from my-util, saying it cannot find my-util. The agent is using clearml temp venv (the one stored under /.clearml/ folder).
My temporary (and very non-pythonic) solution was adding
import os
import sys
sys.path.append(os.path.join(git_path,my_utils_repository_path))
to the top of my code.
I'm looking a better solution
@<1639799308809146368:profile|TritePigeon86> you can add the python path to the agent's configuration, see here: None
Hi @<1639799308809146368:profile|TritePigeon86> , I'm not sure I understand, can you please elaborate on exactly what you're doing?
Are you executing your script using the right python interpreter ?
/venv/bin/python my_clearml_script.py
@<1639799308809146368:profile|TritePigeon86> where is the pythonpath defined, and how are you running the task? Is it using an agent?