Ok so from the error, you have a version of pillow that is incompatible.
You have to downgrade pillow to version 11.
That’s the first step.
EDIT: Sorry just saw the rest of your comment. Do you really have to use that tech?
You have other alternatives. Amazon AWS has a service for handwriting ocr, can’t remember the name though.
You can also have a look at this, but it’s paid: https://www.handwritingocr.com/
More ocr alternatives: https://github.com/michaelben/OCR-handwriting-recognition-libraries
+1 for tesseract. I knew about this one a while ago. It may not recognise all handwriting, but you can train it to get better at it.








Fair point.
So what about Tensor flow and some local LLM to do the job?
You just need to find a reliable LLM in HuggingFace, for example.