[Bug 2093393] [NEW] python3 contains turtle.py without python3-tk installed
Tan Chenyu
2093393 at bugs.launchpad.net
Fri Jan 10 05:46:33 UTC 2025
Public bug reported:
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/python3.11/turtle.py", line 107, in <module>
import tkinter as TK
ModuleNotFoundError: No module named 'tkinter'
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://github.com/python/cpython/pull/126176
** Affects: python3-defaults (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2093393
Title:
python3 contains turtle.py without python3-tk installed
Status in python3-defaults package in Ubuntu:
New
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/python3.11/turtle.py", line 107, in <module>
import tkinter as TK
ModuleNotFoundError: No module named 'tkinter'
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://github.com/python/cpython/pull/126176
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2093393/+subscriptions
More information about the foundations-bugs
mailing list