apache / apache/arrow

Not able to import pyarrow in aws lambda function.

Open
#39,465 2 comments 0 reactions 0 assignees View on GitHub
Component: Parquet Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

I am trying to create a lambda function in aws, which requires pyarrow as a dependency. i have installed pyarrow along with other dependency and created a zip folder in my local machine. after that i have created layer on aws with that zip folder. but when i am trying to run the lambda function, it is giving me this below error.
```
{
"errorMessage": "Unable to import module 'lambda_function': No module named 'pyarrow.lib'",
"errorType": "Runtime.ImportModuleError",
"requestId": "4eb1a49d-751f-4e11-ad1e-2fd75319ccfb",
"stackTrace": []
}
```

Import statements in my lambda function looks like this,
```
import boto3
import pyarrow as pa
import pyarrow.parquet as pq
import redis
```

can anyone help me on this?? although i am able to import other dependencies like redis but not pyarrow.

### Component(s)

Parquet

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.