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

'FileFinder' object has no attribute 'find_module' in 3.12 #51

Open
kalombos opened this issue Jan 16, 2025 · 0 comments
Open

'FileFinder' object has no attribute 'find_module' in 3.12 #51

kalombos opened this issue Jan 16, 2025 · 0 comments

Comments

@kalombos
Copy link

kalombos commented Jan 16, 2025

python 3.12
peewee_migrate2 1.6.4

When tries to run pw_migrate makemigrations get the errorr:

  File "/home/user/projects/my_app/venv/lib/python3.12/site-packages/peewee_migrate/router.py", line 293, in _import_submodules
    module = loader.find_module(name).load_module(name)
AttributeError: 'FileFinder' object has no attribute 'find_module'

Possible fix is: change the line to module = loader.find_spec(name).loader.load_module(name) It has worked for makemigrations command python 3.12

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

1 participant