I encountered the same issue with the module pyscreeze, I tried to downgrade the Pillow package version from 11.0.0 to 10.4.0 and it worked.