fabiocaccamo / django-colorfield

:art: color field for django models with a nice color-picker in the admin.
MIT License
632 stars 95 forks source link

Django 4.2 Error from PIL (Pillow) #133

Closed FloCondignum closed 1 year ago

FloCondignum commented 1 year ago

ImportError in Django 4.2 Hi, i am currently trying to update my Django project from 4.1 to 4.2 but I get an ImportError suddenly.

Error: ImportError: cannot import name '_imaging' from 'PIL' (/var/task/PIL/init.py)

I have checked this error. Usually, a new installation of Pillow should fix the problem, but I still cannot get past this. Is something similiar known? I know that 4.2 is not officially supported yet, but may be this is helpful for others as well.

Cheers,

Flo

Fund with Polar

fabiocaccamo commented 1 year ago

@FloCondignum thanks for reporting this.

That's strange, I'm using this package on some project running on Django 4.2 and I have not any issue.

FloCondignum commented 1 year ago

it was my bad. sorry. i had 3.9 on one aws service and 3.10 on another. This mismatch created this error. sorry for the inconvenience.

fabiocaccamo commented 1 year ago

@FloCondignum no worries, thank you for the update!