Platform: GCP ✅

I was just testing out the Google App Engine stock deployment from https://course.fast.ai/deployment_google_app_engine.html before doing my own model but it fails:

Step 7/9 : RUN python app/server.py
—> Running in d331a27e7048
Traceback (most recent call last):
File “app/server.py”, line 38, in
learn = loop.run_until_complete(asyncio.gather(*tasks))[0]
File “/usr/local/lib/python3.6/asyncio/base_events.py”, line 484, in run_until_complete
return future.result()
File “app/server.py”, line 31, in setup_learner
tfms=get_transforms(), size=224).normalize(imagenet_stats)
File “/usr/local/lib/python3.6/site-packages/fastai/vision/data.py”, line 165, in single_from_classes
return sd.label_const(0, label_cls=CategoryList, classes=classes).transform(ds_tfms, **kwargs).databunch()
TypeError: transform() got multiple values for argument ‘tfms’
The command ‘/bin/sh -c python app/server.py’ returned a non-zero code: 1
ERROR
ERROR: build step 0 “gcr.io/cloud-builders/docker” failed: exit status 1

I actually did it with my own model first and it failed, so reverted to stock to see if that worked and it doesn’t.
Any clues? It’s instructive actually, as it would be really useful to also know the best practices for debugging issues like this as they can be a real pita.

I get the same error trying to build an image using local Docker for Windows as well.

UPDATE:
Fixed Actually it worked after changing tfms to ds_tfms via Transform() got multiple values for argument 'tfms'-Lesson 2