It seems like the actual import statement worked, since there is no ‘ImportError: no module named x’
Hi Chingiz! Is the LIBRARY_IN_REPO in the root of the repo? How do you run this pipeline (with run_locally, debug_pipeline or with an agent)? And lastly, have you checked the clearml logs to see if the repo was correctly pulled?
I ask these questions because the pythonpath is the root of the repo and the repo can only be used when running the pipeline with an agent, IIRC
Hi Max! Yes it is root of the repo. I need file that place root_repo/library_name/file.py. I run pipeline with an agent
Additionally, I have found it helpful to take a look into the agent’s working directory. With the python error should be the location of the script, and it may tell you a bit more by browsing that directory
Just to be sure, you could download the repo and put this script in the root, and use the PipelineDecorator.debug_pipeline()
option to run it locally and see if the code works like you wanted 🙂
Hmm that sounds okay to me, could you send the clearml log with the ‘No module named ..’ error?
Thank you! I will try and share result with you too 🙂 Good ideas
BTW thank you, I will check directory
Traceback (most recent call last): File "/root/.clearml/venvs-builds/3.8/code/get_signatures.py", line 34, in <module> results = get_signatures(**kwargs) File "/root/.clearml/venvs-builds/3.8/code/get_signatures.py", line 9, in get_signatures speaker_module = LIBRARY_IN_REPO(clearml_id=model) NameError: name 'LIBRARY_IN_REPO' is not defined