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

254 Views Asked by At

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?

1

There are 1 best solutions below

2
Catalin Voss On BEST ANSWER

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