AWS lambda Python functions gives error to install the "google-cloud-firestore" module, but is already installed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với lambda_function và package đã tải lên được tạo bởi pip install --target . firebase-admin==5.2.0 và pip install --target . grpcio. Tái hiện lỗi import của AWS Lambda và kiểm tra nội dung package cũng như lỗi runtime. Công việc được hoàn tất khi function Python 3.9 đã triển khai import và sử dụng Cloud Firestore mà không gặp lỗi thiếu module.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:

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:

What can I do to solve this error? & made available google-cloud-firestore works fine in my AWS Lambda Python?
Thanks!
- Ngôn ngữ chính
- Python
- Star
- 1.2k
- Fork
- 359
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-python
-
api: remoteconfig
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
firebase/firebase-admin-python#957 · 1 bình luận ·
-
api: database type: feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
firebase/firebase-admin-python#978 · 1 bình luận ·
-
[FR] Support VERIFY_AND_CHANGE_EMAIL in generate_email_action_link (parity with firebase-admin-node) Đang mởapi: auth
firebase/firebase-admin-python#949 · 2 bình luận · 1 reaction · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
firebase/firebase-admin-python#945 · 1 bình luận · 1 reaction ·
Tất cả issue của firebase/firebase-admin-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·