I'm trying to deploy an API to Google Cloud on Google AppEngine, using python3 with the standard environment, and I want to use the defer function to put functions in Google CloudTasks, as seen here: https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/creating-tasks#using_the_instead_of_a_worker_service
I tried putting google.appengine on the requirements.txt file, where the python libraries are usually listed for pip install
, adding a line with google-appengine, but it fails on deploy, with the following error message:
ModuleNotFoundError: No module named 'ez_setup'
I've added ez_setup to the list of requirements, before appengine, and it still results in the same error.
I've also tried deploying it without importing google.appengine, thinking it might come already installed, but then I get the expected error saying No module named 'google.appengine'
on it's import.
Is there something I'm missing on installation/import of this lib? Or is the library deprecated, and some new library is used to defer?
I've also tried to install the library on my local computer, and did not manage to install it here either.