Question with local module
See original GitHub issueI would say the automation together with the agent is amazing and I love this feature so much.
However, i got stuck at this point. The step I did:
- run task init in my train.py which import a few local modules like config.py
- after running, I got a complete task on server
- I cloned the task and put it into the queue
- the agent pulled the task and start installing the required pkgs everything here is fine until it starts running, the error shows like this:
Traceback (most recent call last):
File "/user/.clearml/venvs-builds/3.9/code/train.py", line 8, in <module>
from config import checkpoint
ModuleNotFoundError: No module named 'config'
Then I checked the code directory and got this:
ls .clearml/venvs-builds/3.9/code
>>> train.py
Seems the agent only copied the entry file, not the others. Can you please elaborate more about which files will be captured when running task init manually and how the agent decides which files will be copied to the venvs/code directory?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Use a local module, using local dependency [duplicate]
This question already has answers here: json, index. ts, etc), i try to include it in my main project ( npm link works...
Read more >Locally free module - Mathematics Stack Exchange
I should prove that M is a locally free module of rank one iff M∗⊗M≅A via the standard trace application. (For me locally...
Read more >Node.js Local Module - GeeksforGeeks
We can define modules locally as Local Module. It consists different functions declared inside a JavaScript object and we reuse them ...
Read more >Frequently Asked Questions — Ansible Documentation
Frequently Asked Questions . Here are some commonly asked questions and their answers. Where did all the modules go? . In July,...
Read more >Solved Question 1: Determine the Local and Global Variable
Question : Question 1: Determine the Local and Global Variable CI Start Counter =0 Module 1: sum=0 sum= number 1+ number 2 End...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @jing-bi ,
How did you run your initial task? Was it from a Git repository containing your code? If you only executed a file not in a Git repository, ClearML will only store that specific file in the task’s metadata and thus will only copy that file when running the task using the agent.
I know what’s wrong, I use pycharm to run the code remotely, it’s indeed a git repo on my local but on the remote it’s not