VOOZH about

URL: https://repost.aws/questions/QUAbctnHYmQlWDxNm8M-n9Zg/in-lambda-used-pyarrow-but-throw-error-unable-to-import-module-lambda-function-no-module-named-pyarrow-lib

⇱ In lambda used pyarrow,but throw error :Unable to import module 'lambda_function': No module named 'pyarrow.lib' | AWS re:Post


Skip to content

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'.

Language
English

asked 3 years ago2.5K views

1 Answer
  • Newest
  • Most votes
  • Most comments
Are these answers helpful? Upvote the correct answer to help the community benefit from your knowledge.
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

answered 3 years ago