Unanswered
When Launching A Task To Trains Agent, I'M Having Trouble Getting The Imports From Other Files Working Correctly.
For Instance, If My Task Imports A Function From Another File Within The Same Git Repo [
If there a way to do this without manually editing installed packages?
Running your code once with Task.init
should automatically detect all the directly imported packages, then when trains-agent
executes the Task, it will install them to a clean venv and put back all the packages inside the venv.
In order for all the used packages (e.g. bigquery) to appear in the "Installed packages" your cide needs to be executed once manually (i.e. not with trains-agent) then the trains
will detect them.
GiddyTurkey39 just making sure, you executed the code once manually and the "bigquery" package was missing form it ?
168 Views
0
Answers
4 years ago
one year ago