New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloning local (conda) venv #8
Comments
Hi @Zeko403 , When executing your code "manually" inside a If you want the trains-agent to use The trains-agent will now use Now you can simple enqueue the experiment in the execution queue, and the trains-agent should replicate the entire |
Hi @bmartinn I understand it clones the environment dependencies, but I was wondering if this cloning could be from a local virtual environment that for example I have in my old projects and not to go online and download them trough git etc. The reason is that sometimes, some of the machines do not have internet access but they have local environments on them. I'm guessing when you clone a task in the UI of the experiments, the new clone will download everything (libs and etc,) instead of using a local copy right? |
Long story short, No you cannot use the local copy :( That said, trains-agent cache both git repositories as well as python packages and libs. This means that you will be downloading the python packages and git repository only once, then the next time you need the same git repository or python package, it will first update the cache (if needed) then install them. Regrading the machine without internet access, I'm assuming packages were somehow brought to those machines?! Usually when that is the case, companies use an on-prem artifactory and git server. You can quickly set conda to use the local artifactory, instead of the default one: either config it specifically in the |
Thanks a lot I will look into that! |
OK, I got things set up now, but I keep getting the error when I try to pull things from company's git the "Permission denied (publickey)." I also added --git-pass with a passphrase for the ssh, but it didn't help. The https is not an option as the repo is allowing cloning only with ssh. |
@Zeko403 there are two options for passing the git user/pass to the trains-agent
I'm assuming that the seconds option is preferable in your case, and from what I understand there is still an issue when pulling the repository. Debugging questions:
|
Thanks for your reply @bmartinn I checked that git_pass and user are empty in the trains.config Regarding your questions: 5 Log from git bash:
Log from the trains-agent that was started after running the git bash:
|
Hi again, I was playing around with the different solutions to the "keychain" on windows and after I installed Git Credential Manager for Windows it now worked regarding git clone that ran successful! Thanks again for your help |
Hi all I have been trying out trains-agent for a while now and I was wondering if there is an option for it to clone the venv from the preexisting conda venv?
So for example, I have a few projects I have been working on, each having their own virtual environment made in conda. Could these project's environments be somehow cloned to a trains-agent so that it doesn't redownload the whole requirements and git folders etc.?
Maybe this option already exists but I might have missed it.
Thanks!
The text was updated successfully, but these errors were encountered: