Hi Shara, The example dockerfile installs the base requirements for Ubuntu but then we use the build_venv.sh (or build_conda.sh) to build the Arrow CPP library and then pyarrow [1].
>From the error it seems you did not build Arrow CPP as libarrow.so can't be found. Can you try following the recipe on the provided sh file? Kind regards, Raúl [1] https://github.com/apache/arrow/blob/main/python/examples/minimal_build/build_venv.sh El mar, 21 nov 2023 a las 23:05, Akshara Sadheesh (<sharasadhe...@gmail.com>) escribió: > > Hi, > > I have been trying to use the minimal_build for python with the > provided examples Dockerfile.ubuntu for my lambda layers since it has > a 250 MB limit. I am able to run the build and generate a pyarrow > library. However, the library does not contain any shared .so files. > When in use, it says: > > `"Unable to import module 'lambda_function': libarrow.so.1500: cannot > open shared object file: No such file or directory"` > > I modified the Dockerfile to use python 3.10, ubuntu image to 22.04 > and set the `--platform linux/x86_64` when building the image to > ensure it is compatible with the lambda architecture. > > I would be very grateful if you could help me with this, > > Thank you! > > Shara