Mint Xfce was loaded from scratch to a clean SSD, all upgrades came from the “Software Manager” using the deb option if available, I don’t think I had to load any from flatpacks yet. I did a search of the home directory for tkinter.py, but only found tkinter.pyi. I loaded Mint, then Python, then Pycharm.
The code that failed in this example was a working tutorial from w3school.
curbie
Mint Xfce 22
PyCharm 2024.3.1.1 (Community Edition)
Build #PC-243.22562.220, built on December 18, 2024
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-51-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4002M
Cores: 12# 36 widgets *** Ttk Widgets ***
import tkinter as tk # import tk interface module
from tkinter import ttk # get Tk themed routines
#
Registry:
ide.experimental.ui=true
i18n.locale=Mint Xfce was loaded from scratch to a clean SSD, all upgrades came from the “Software Manager” using the deb option if available, I don’t think I had to load any from flatpacks yet. I did a search of the home directory for tkinter.py, but only found tkinter.pyi.
The code that failed in this example was a working tutorial from w3school.
System:
Mint Xfce 22
IDE:
PyCharm 2024.3.1.1 (Community Edition)
Build #PC-243.22562.220, built on December 18, 2024
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-51-generic
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4002M
Cores: 12# 36 widgets *** Ttk Widgets ***
import tkinter as tk # import tk interface module
from tkinter import ttk # get Tk themed routines
#
Registry:
ide.experimental.ui=true
i18n.locale=
llm.show.ai.promotion.window.on.start=false
Current Desktop: XFCEtkinter
Version:
Python 3.12.3
First 4 lines of Code:
# 36 widgets *** Ttk Widgets ***
import tkinter as tk # import tk interface module
from tkinter import ttk # get Tk themed routines
#
Traceback:
Error:
/home/curbie/.cache/JetBrains/PyCharmCE2024.3/demo/PyCharmLearningProject/.venv/bin/python /home/curbie/PycharmProjects/alpha/amimagev2/36 gui-widget.py
Traceback (most recent call last):
File "/home/curbie/PycharmProjects/alpha/amimagev2/36 gui-widget.py", line 2, in <module>
import tkinter as tk # import tk interface module
^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tkinter'
Process finished with exit code 1