question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question with local module

See original GitHub issue

I 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:

  1. run task init in my train.py which import a few local modules like config.py
  2. after running, I got a complete task on server
  3. I cloned the task and put it into the queue
  4. 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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jkhenningcommented, Dec 1, 2021

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.

0reactions
jing-bicommented, Dec 1, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found