-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ModuleNotFoundError: No module named 'distutils' with Python 3.12 #2023
Comments
Sorry: Reinstalled both 3.11 and 3.12 virtual environments (venv) -> No error messages appear. -> App works. |
Having the same issue, am not using venvs |
@TechPro424 this is not related to venvs, CustomTkinter simply haven't updated for Python 3.12 yet. For now, you can just downgrade Python to 3.11 version. In general, it make sense to update to a new Python version (like from 3.11 to 3.12 or 3.12 to 3.13 and so on) not earlier then a half of a year after the release of such version (so that most of major libraries catch up). |
If you don't want to accept @insolor 's suggestion of downgrading (for whatever reason):
Regarding "waiting half a year":
|
After some investigation (ideas of a pull request):
Also, it seems, |
@insolor : thanks In CustomTkinter/customtkinter/windows/ctk_tk.py: replace:
with:
I have to test that a little more, but it seems to work. |
This is too misleading in my taste (importing a function with a name style of a class). |
@insolor Anyway, it‘s not my code, so whoever fixes it should choose. My part is over here. |
I ended up using a venv, and you were right: the issue is that CTK dies not support 3.12. |
duplicate of #2005 |
No module distutils in Python 3.12 makes CustomTkinter traceback:
See: PEP 632 – Deprecate distutils module
Also (using StrictVersion from distutils):
DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
(similar to #2022)
The text was updated successfully, but these errors were encountered: