Harry Stuart
Harry Stuart

Reputation: 1929

Google ML Training task can't find module

I am trying to run my ml Python script using gcloud ml, but keep getting the error:

/usr/bin/python: No module named trainer

The command I am using is:

gcloud ai-platform jobs submit training "job6" --job-dir \
"gs://comp10001cards/root" --package-path "C:\\Users\hjstu\desktop" \             
 --module-name trainer.task --region "us-central1"

"C:\\Users\hjstu\desktop" contains a __init__.py file. "gs://comp10001cards/root" contains the folder trainer which contains an __init__.py file and my script task.py.

Where is /usr/bin/python? What am I doing wrong? If it helps, I am using the gcloud tool from cmd within C:\\Users\hjstu\desktop.

Upvotes: 0

Views: 325

Answers (1)

sdcbr
sdcbr

Reputation: 7129

Your trainer module and task.py script should sit locally on your computer when you run the jobs submit training command. The command will package your code, send it to the cloud, and execute it.

enter image description here

Have a look at the relevant documentation page for more information.

Upvotes: 1

Related Questions