mittagessen / kraken

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

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? #623

Closed amaury-gau closed 1 month ago

amaury-gau commented 1 month ago

When trying to install from the git repo with pip install . on my MacOS-arm64, python version 3.12, I got the following error.

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

I corrected it by downgrading my python version to 3.10. I also, on my environment.yml deleted the channel conda and changed the conda dependecies :

I don't know if any other information might be helpful for this issue.

mittagessen commented 1 month ago

kraken doesn't support python 3.12 and all the packaging tools restrict it to 3.11 or below. You should have seen a big fat red warning when running pip as 3.12 is indeed not functional (yet). Anything between 3.9 and 3.11 works fine.