In lambda used pyarrow,but throw error :Unable to import module 'lambda_function': No module named 'pyarrow.lib'

0

I want to use pyarrow in lambda then create layer and upload pyarrow zip. And point the layer to my lambda,But My lambda still throw error:Unable to import module 'lambda_function': No module named 'pyarrow.lib'.

Yu Chen
已提問 7 個月前檢視次數 721 次
1 個回答
0

Hi,

Please refer to this troubleshooting guide properly: https://repost.aws/knowledge-center/lambda-import-module-error-python.
Especially, make note of this:

Important: Make sure that you put the library that you import for Python inside the /python folder.

References:
[1] https://stackoverflow.com/questions/54317115/how-do-i-import-a-python-lambda-layer

Thanks,
Atul

profile picture
已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南