mittagessen / kraken

OCR engine for all the languages
http://kraken.re
Apache License 2.0
724 stars 130 forks source link

[Main branch] `ketos compile` breaks on LXML being unpickable #566

Closed PonteIneptique closed 6 months ago

PonteIneptique commented 8 months ago

The current multi-worker is broken on mail for ketos compile, I had to write a work-around for a script. The error thrown is lxml.etree.ElementTree is unpickable at the imap call. The way I dealt with it is to have the parsing inside the pooled function, instead of before...

mittagessen commented 7 months ago

Are you sure? It works perfectly fine on my system and I don't see where it would transmit over an ElementTree into another process.