Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rbennett00 opened this issue Oct 23, 2023 · 1 comment
Closed

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

rbennett00 opened this issue Oct 23, 2023 · 1 comment
Labels
bug Bug reports.

Comments

@rbennett00
Copy link

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'

@dktrkranz
Copy link
Contributor

Patch fixing this issue can be found here: python/cpython@328cb1f#diff-27bf55510663a73d2fdea1e604efdb59e0115378530202b5c55d04656dedece2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants