JohannesBuchner / imagehash

A Python Perceptual Image Hashing Module
BSD 2-Clause "Simplified" License
3.14k stars 328 forks source link

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. #202

Closed ChristophSBG closed 11 months ago

ChristophSBG commented 11 months ago

When using Python 3.12 you get the following error message when trying to install imagehash via pip:

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'.

From what I researched it is due to Python 3.12 not supporting pkgutil.ImpImporter anymore: https://docs.python.org/3/whatsnew/3.12.html

JohannesBuchner commented 11 months ago

duplicate of https://github.com/JohannesBuchner/imagehash/issues/194