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

python 3.12 support is broken? #496

Open
ronaldoussoren opened this issue Jun 14, 2023 · 3 comments
Open

python 3.12 support is broken? #496

ronaldoussoren opened this issue Jun 14, 2023 · 3 comments

Comments

@ronaldoussoren
Copy link
Owner

Looks like Python 3.12 support isn't there after all. I did a clean install of beta 2 (removing the previous installation before installing), and it turns out py2app and modulegraph rely on some modules that were removed in 3.12 (in particular imp).

@sirus-the-beaver
Copy link

Python deprecated imp in favor of importlib: https://docs.python.org/3.11/library/imp.html

How/where is the imp module being used and would it be possible to migrate to using importlib?

@sebastianhaberey
Copy link

I am getting the same error

ModuleNotFoundError: No module named 'imp'
  • macOS Sonoma 14.1.2
  • Python 3.12.1
  • py2app 0.28.6

@yauhen-info
Copy link

For the py2app version 0.28.6 (latest as of Jan 20th, 2024), in build_app.py copilot suggest to replace import imp with import importlib.machinery, so in the same file in the line 1798 it can replace the exts = [i[0] for i in importlib.get_suffixes()] with exts = [i[0] for i in importlib.machinery.all_suffixes()]

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

No branches or pull requests

4 participants