Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#634 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
aws, python
Bereich
backend, cloud, databases

Rechercherichtung

Beginne mit lambda_function und dem hochgeladenen Paket, das durch pip install --target . firebase-admin==5.2.0 und pip install --target . grpcio erzeugt wurde. Reproduziere den AWS-Lambda-Importfehler und untersuche den Paketinhalt sowie den Laufzeitfehler. Die Arbeit ist abgeschlossen, wenn die bereitgestellte Python-3.9-Funktion Cloud Firestore importiert und verwendet, ohne dass der Fehler wegen des fehlenden Moduls auftritt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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!

Vorherrschende Sprache
Python
Sterne
1.2k
Forks
359
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
3

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus firebase/firebase-admin-python

Alle Issues in firebase/firebase-admin-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.