I built the function using python 3.11 runtime. I'm using the pdf2image python-pip package. However this package depends on poppler-utils at os-level.
To achieve this, I'm using the following build command: apk update && apk add --upgrade poppler-utils && pip install -r requirements.txt
But the issue still persists. pdf2oimage still not able to find the poppler path
Summary
The user is having trouble finding the path of a package installed in a function using the build command. They are using an Apple M1 chip and have encountered an "OSError: [Errno 8] Exec format error" when trying to build. The suggestion is to download a binary and include it in the code instead of installing via apk. The user has provided build logs showing the installation process, but the issue still persists. They are using the pdf2image package, which depends on poppler-utils at the OS level. The build command they are using is "apk update && apk add --upgrade poppler-utils && pip install
hmmm so the problem is the place where the build happens, isn't the same place as where your code runs.
any chance you can donwload some sort of binary and include that in your code instead of installing via apk?
Abhishek
Rank 2: Process
Sep 27, 2023, 07:16
I need to check the possibility
Abhishek
Rank 2: Process
Sep 27, 2023, 08:43
I tried with binary approach, but now I'm stuck with following error: OSError: [Errno 8] Exec format error
Drake
Admin
Sep 27, 2023, 19:49
Did you use a binary for alpine? X86 or arm?
Abhishek
Rank 2: Process
Sep 28, 2023, 17:34
python3.11-apline
Abhishek
Rank 2: Process
Sep 28, 2023, 17:35
I'm not sure about x86 or ARM. I'm generating the binary and libs through the docker container running on Apple M1 chip. I will check which arch is the output
Drake
Admin
Sep 28, 2023, 18:07
apple M1 would be an arm-based CPU
Drake
Admin
Sep 28, 2023, 18:07
so wherever you deploy would need to also be arm-based