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

Updates imp import to importlib for compatibility with Python 3.12 #465

Merged
merged 1 commit into from
May 20, 2024

Conversation

psmgeelen
Copy link
Contributor

@psmgeelen psmgeelen commented May 20, 2024

Scope

Fixes #464

What is changed

mkchromecast/tray_threading.py refers to imp that is no longer supported in python 3.12. This has been changed to importlib. Initial testing shows that it is working.

….py. `imp` is no longer supported in python 3.12, causing a hard error when using Ubuntu 24.04 LTS, that uses this version natively.
@xsdg xsdg changed the title PR to issue: https://github.com/muammar/mkchromecast/issues/464 Updates imp import to importlib for compatibility with Python 3.12 May 20, 2024
@xsdg
Copy link
Collaborator

xsdg commented May 20, 2024

Looks reasonable! In general, the PR title should be independently meaningful without needing to look up other references to make sense of it. Referring to related bugs in the PR description is sufficient.

Also, specifically in github, if you use a statement like "fixes #464 " in the description (I don't know if it also works in comments or not), that will cause that bug to be automatically marked as fixed when the PR is merged.

@xsdg xsdg merged commit 1d14cdf into muammar:master May 20, 2024
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 this pull request may close these issues.

Issues with Tray Application: ModuleNotFoundError: No module named 'imp'
2 participants