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

imp is now fully depreciated in Python 3.12, the replacement is importlib #13

Open
gautampk opened this issue Aug 7, 2024 · 0 comments · May be fixed by #14
Open

imp is now fully depreciated in Python 3.12, the replacement is importlib #13

gautampk opened this issue Aug 7, 2024 · 0 comments · May be fixed by #14

Comments

@gautampk
Copy link

gautampk commented Aug 7, 2024

imp is not even included for backwards compatability anymore from 3.12 onwards. As far as I can tell imp is only used in plugins.py on lines 46 and 55. I've not looked at how to migrate but hopefully it's not too difficult!

@gautampk gautampk changed the title imp is depreciated in Python 3.12, the replacement is importlib imp is now fully depreciated in Python 3.12, the replacement is importlib Aug 7, 2024
ColdMacaroni pushed a commit to ColdMacaroni/rawdog-py3 that referenced this issue Jan 9, 2025
`imp` got removed in python 3.12. This changes plugins.py to use
`importlib` instead to load the plugins.

Used the examples in https://docs.python.org/3.11/library/imp.html
and https://docs.python.org/3.11/library/importlib.html to upgrade.
@ColdMacaroni ColdMacaroni linked a pull request Jan 9, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant