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-storage
works 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=true
does not help as error occurs atimport
itself. 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). Seemscygprc
is being loaded regardless.I could try downgrade the
datastore
module to a version which only supported thehttp api
but not sure which one - and that would require most likely to changestorage
version too
If we managed to get datastore
lib to work, our next attempt will be bigquery
- should work as doesn't use gRPC (yet?)