Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AWS lambda Python functions gives error to install the "google-cloud-firestore" module, but is already installed

Open
#634 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, python

Research direction

Start with lambda_function and the uploaded package produced by pip install --target . firebase-admin==5.2.0 and pip install --target . grpcio. Reproduce the AWS Lambda import failure and inspect the package contents and runtime error. Done means the deployed Python 3.9 function imports and uses Cloud Firestore without the missing-module error.

Written by the indexing model from the issue text.

Description

needs-triage

Operating System version: AWS Python lambda
Firebase SDK version: firebase-admin 5.2.0
Firebase Product: google cloud firestore
Python version: 3.9

Hi I have an AWS Lambda in Python 3.9 (now regenerated in AWS functions console),I have installed in my local aws folder firebase-admin & dependencies:

pip install --target . firebase-admin==5.2.0

This installation gives me this error:

image

And finally I have implemented my Python AWS lambda, and upload to AWS lambda as ZIP file a package to the AWS code function console. When I tried to execute my testing in the Python Lambda, this gives me this error:

{
  "errorMessage": "Unable to import module 'lambda_function': Failed to import the Cloud Firestore library for Python. Make sure to install the \"google-cloud-firestore\" module.",
  "errorType": "Runtime.ImportModuleError",
  "stackTrace": []
}

I also installed in my local directory the grpcio module, before to upload ZIP file in AWS function console, with this command:

pip install --target . grpcio

And finally upload all my directory in a package to the AWS function console.

But the same error is displayed when I execute a test in AWS cloud function.

{
  "errorMessage": "Unable to import module 'lambda_function': Failed to import the Cloud Firestore library for Python. Make sure to install the \"google-cloud-firestore\" module.", ....
}

This is my full directory:

image

What can I do to solve this error? & made available google-cloud-firestore works fine in my AWS Lambda Python?

Thanks!

Dominant language
Python
Stars
1.2k
Forks
359
Avg merge
3d 9h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-python

All issues in firebase/firebase-admin-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.