Because Google Functions does not support Python, I was hoping to use google-cloud-datastore in AWS Lambda but hit the same error as
AWS Lambda to Firestore error: cannot import name 'cygrpc'
google-cloud-storageworks just fine in Lambda so core packaging is not the issue but could pip'ing datastore miss some dependencies ?setting env.var
GOOGLE_CLOUD_DISABLE_GRPC=truedoes not help as error occurs atimportitself. I wonder if this is not a design flaw: you would want to import any gRPC-related libs only if enabled (which is the default). Seemscygprcis being loaded regardless.I could try downgrade the
datastoremodule to a version which only supported thehttp apibut not sure which one - and that would require most likely to changestorageversion too
If we managed to get datastore lib to work, our next attempt will be bigquery - should work as doesn't use gRPC (yet?)