Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, Can You Help Me Pls, I Got: Environment Setup Completed Successfully Starting Task Execution: Traceback (Most Recent Call Last): File "Agro_Api.Py", Line 13, In From Help_Models.Consts Import Urls Importerror: No Module Named 'Help_Models'

Hi, can you help me pls,
I got:
Environment setup completed successfully
Starting Task Execution:
Traceback (most recent call last):
File "agro_api.py", line 13, in
from help_models.consts import Urls
ImportError: No module named 'help_models'

  
  
Posted 4 years ago
Votes Newest

Answers 25


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?

  
  
Posted 4 years ago

can you help me?

  
  
Posted 4 years ago

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 ?

  
  
Posted 4 years ago

BTW trains agent will not delete the venv until the next run, so you can check exactly what's missing there

  
  
Posted 4 years ago

"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

  
  
Posted 4 years ago

i run it from the Allegro dashboard by sending it to a worker

  
  
Posted 4 years ago

"what's the trains/trains-agent/trains-server versions ?" how can I check it?

  
  
Posted 4 years ago

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

  
  
Posted 4 years ago

trains==0.14.1
trains-agent==0.14.1

  
  
Posted 4 years ago

Check the log usually ~/.trains/venv/...

  
  
Posted 4 years ago

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?

  
  
Posted 4 years ago

*models

  
  
Posted 4 years ago

I am running trains agent

  
  
Posted 4 years ago

it is in venv

  
  
Posted 4 years ago

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'"

  
  
Posted 4 years ago

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)

  
  
Posted 4 years ago

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 🙂

  
  
Posted 4 years ago

Agro Scout - trains ( v0.14 )

  
  
Posted 4 years ago

help_models is a dir in the git

And the git is registered on the experiment correctly ?

  
  
Posted 4 years ago

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... 乁( ͡° ͜ʖ ͡°)ㄏ

  
  
Posted 4 years ago

"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

  
  
Posted 4 years ago

help_models is a dir in the git

  
  
Posted 4 years ago

where can i see it? to where the project is clonned?

  
  
Posted 4 years ago

it is my first time using Allegro so I am new to this...

  
  
Posted 4 years ago

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

  
  
Posted 4 years ago