-
Troubleshooting 'google.rpc' Module Error While Running Google Analytics Data API on AWS Lambda Python Function
Hey! I was trying to follow the Python code sample from https://developers.google.com/analytics/devguides/reporting/data/v1/basics and wanted to run it using AWS Lambda on python3.8 x86_64.
To make it work, I included certain dependencies like google_analytics_data-0.16.1-py2.py3–any.whl, grpcio-1.51.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl, grpcio_tools-1.51.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl and google_api_core-2.11.0-py3–any.whl within the package.
But I keep getting this error –
{
“errorMessage”: “Unable to import module No module named ‘google.rpc'”,
“errorType”: “Runtime.ImportModuleError”,
“stackTrace”: []
}I’ve been trying to figure out which library might contain ‘google.rpc’, but haven’t had any success so far. Any hints on how to tackle this issue would be really helpful! Thanks in advance and hope you’re having a good day.
Log in to reply.