python3 contains turtle.py without python3-tk installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.13 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I using python3 without installing python3-tk,
the "import turtle" command returns "No module named 'tkinter'" instead of "No module named 'turtle'".
Here is a transcript:
$ python3
Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
import tkinter as TK
ModuleNotFoundE
I suggest that the turtle.py be put into python3-tk, not python3.
It is recommended that python3.13 be modified first.
There is the same issue on Debian, but I always failed to sent email :(
The familiar issue on Windows has been fixed: https:/
I swear I've seen this bug filed somewhere else before, but I can't find it.
The turtle module would not be a good fit in python3-tk. The rigth thing to do here is to just emit a more helpful error message.