Category : python-imaging-library

I’m trying to deploy my project on django. I almost did it but django can’t see installed pillow in docker container. I’m sure that it’s installed pip sends me this: sudo docker-compose -f docker-compose.prod.yml exec web pip install pillow Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pillow in /usr/local/lib/python3.8/site-packages ..

Read more

I have a django app that has the following dependencies. requirements.txt boto3==1.16.59 django-storages==1.11.1 easy-thumbnails==2.7.1 django-material==1.7.4 Django==3.1.5 python-dotenv==0.15.0 psycopg2-binary==2.8.5 The app runs fine locally on my machine where I have these packages installed inside a conda virtual environment but I am getting the following error when I try to build an image using a Dockerfile. The ..

Read more

Hello I am following this tutorial tutorial link. Everything is working fine but when i run bellow command it says pillow is not found but pillow already is installed. docker-compose -f docker-compose.prod.yml exec app python manage.py migrate –noinput This is the error: employee.Employee.image: (fields.E210) Cannot use ImageField because Pillow is not installed. HINT: Get Pillow ..

Read more

I am serving a PNG or SVG image through Flask. Locally it works fine but when I run the application inside docker and send request (POST) I get following error: RuntimeError: Attempted implicit sequence conversion but the response object is in direct passthrough mode. Bellow code for serving PIL image through flask: def serve_image(image: Image, ..

Read more