JohannesBuchner / imagehash

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

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

Closed ChristophSBG closed 1 year ago

ChristophSBG commented 1 year 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 1 year ago

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