I'm trying to use Pillow in a Pants project, but s...
# general
a
I'm trying to use Pillow in a Pants project, but suddenly my application is failing with
ImportError: libjpeg.so.8: cannot open shared object file
. I've lost the original template, on which the Dockerfile is based, but I thought all dependencies were baked into the PEX-directly? How would I go about ensuring libjpeg is installed and available to the PEX. I've tried to apt-install it in the docker image without avail. Running
find / -name libjpeg.so
returns
/usr/lib/x86_64-linux-gnu/libjpeg.so
f
All Python dependencies would be. But a Python module written in C/C++ could still have external shared library dependencies like the one you mention here for libjpeg.
a
Resolved by upgrading Pillow from 9.* 10.*