gcloudgoogle-cloud-mlgoogle-cloud-ml-engine

"Attempted relative import in non-package" on Google Cloud ML


Since yesterday or the day before, I get a

ValueError: Attempted relative import in non-package

for an import in my main trainer file like

from . import mobilenet_v1 as mobilenet

when running the exact same trainer code with the exact same parameters on cloud ML using the exact same training job. I'm bundling my trainer using the gcloud tool. I tried rolling my own setup.py instead without luck. Any pointers as to what this could be caused by?


Solution

  • Looks like this was actually a Cloud ML bug. It has been fixed! Thank you for the super fast turnaround.