I’m trying to deploy the bear classification model from Lesson 2 on Google App Engine and after running gcloud app deploy, ran into this error message:
ERROR: Could not build wheels for spacy which use PEP 517 and cannot be installed directly
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: exit status 1
Anyone else run into this before and know of a solution? I’m following the instructions in https://course.fast.ai/deployment_google_app_engine.html#per-project-setup and did try deploying locally first, which did work. For the model file, I’m using stage-2.pth (created from learn.save('stage-2')) instead of export.pkl.
I faced the exact same problem few hours ago. I added “spacy==2.1.6” in the requirements.txt file just before “fastai==1.0.55” and after that it worked. Note: These were the versions installed in my local environment so I used that.
You can increase the google deploy timeout with this command: