"what's the trains/trains-agent/trains-server versions ?" how can I check it?
trains/trains-agent are pip packages os,pip freeze | grep trains
trains-server you can check in the /profile page top left corner
And what is exactly missing from the "installed packages" ? Is "help_models" an additional wheel you have to install ?
Just making sure here, but remember that if your original code did not have a git repo, the only thing that is "copied" to the trains-server is the initial script, so any accompanying scripts will be missing in the trains-agent environment
if i understand correctly it clones the git, install all packages and run the script so if I have something in the git repo it should be cloned... am I missing something?
help_models is a dir in the git
And the git is registered on the experiment correctly ?
"what's the trains/trains-agent/trains-server versions ?" how can I check it?
PlainSquid19 No worries 🙂
btw: If you could see if the mangling of workings / script path happens with the latest trains, that will be appreciated, because if you were running the script in the first place from "stages/" then the trains should have caught it ...
"And the git is registered on the experiment correctly ?" how can I check it? (it is the same git repo were the script is running just in different dir...
project/stages/alegro_api
project/help_modls
maybe it cloned the wrong branch?
but it found the requirements.txt and install all packages and it was the one one the right branch... how can I specify from which branch to clone it the trains.conf?
HI PlainSquid19 could you add a bit more information? Are you running trains-agent ? is it in docker/venv mode ? what's the trains/trains-agent/trains-server versions ?
i run it from the Allegro dashboard by sending it to a worker
it is my first time using Allegro so I am new to this...
You are correct, the agent will clone the git and install the requirements, as written in the task installed packages section. Regrading the git branch, notice it will pull the specific commit id as stated in the execution section, and it will apply any uncommitted changes. You can edit the execution section and change the commit to the latest in a specific version (you should probably also clear the uncommitted changes of you do that)
That sounds like an issue with "working dir" , check the "Execution" "Working Directory" field.
'.' means the root of the git repository
'subfolder' means run the script from the subfolder etc. also make sure that the script path is adjusted accordingly.
btw: Trains should have filled in all the correct paths... If you have time get the latest trains (0.14.3) and run again see if the problem consts, we should probably fix that bug 🙂
BTW trains agent will not delete the venv until the next run, so you can check exactly what's missing there
yep... i changed the working dir to "." and the script path to stages/agro_api and now it works... now i feel like i wasted your time on a very stupid issue... 乁( ͡° ͜ʖ ͡°)ㄏ
where can i see it? to where the project is clonned?
when i connect to the VM and run the script from the the git repo that was clonned by trains at ".trains/venvs-builds/3.5/task_repository/agroscoutai.git" it works but when i run it from the board bt enque it to the worker it fails on the error "ImportError: No module named 'help_models'"