dupeguru icon indicating copy to clipboard operation
dupeguru copied to clipboard

hscommon\pygettext.py calling imp, which is removed in 3.12

Open rbennett00 opened this issue 1 year ago • 1 comments

imp is no longer available in 3.12 and has been replaced with importlib. need to update pygettext.py to use importlib instead.

(env) C:\Users\rbenn\Documents\GitHub\dupeguru>py build.py Traceback (most recent call last): File "C:\Users\rbenn\Documents\GitHub\dupeguru\build.py", line 20, in from hscommon import loc File "C:\Users\rbenn\Documents\GitHub\dupeguru\hscommon\loc.py", line 9, in from hscommon import pygettext File "C:\Users\rbenn\Documents\GitHub\dupeguru\hscommon\pygettext.py", line 18, in import imp ModuleNotFoundError: No module named 'imp'

rbennett00 avatar Oct 23 '23 23:10 rbennett00

Patch fixing this issue can be found here: https://github.com/python/cpython/commit/328cb1fed0c91f50f311cdc545fe0e9303d0dae7#diff-27bf55510663a73d2fdea1e604efdb59e0115378530202b5c55d04656dedece2

dktrkranz avatar Feb 09 '24 11:02 dktrkranz