Project

General

Profile

Actions

Bug #14851

closed

Tkinter not available in default Python 3 version

Added by Will B over 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

With default Python 3 installation of latest OpenIndiana 2021.10, fully updated as of 2022-07-24, Tkinter cannot be imported:

>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
>>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Tkinter'
$ python3
Python 3.7.13 (default, Jul  8 2022, 09:04:16) 
[GCC 7.5.0] on sunos5

I also tried with the installed Python 3.9 and it does not have Tkinter. Python 2, on the other hand, does have Tkinter installed and is importable, however my projects use Python 3. I installed the tk-8 package but this did not add Tkinter to Python 3.

Thanks!

Actions #1

Updated by Andreas Wacknitz over 1 year ago

tkinter is in separate packages:
╰─➤ pkg list a|grep tkinter 1 ↵
library/python-2/tkinter-26 2.6.9-2016.0.1.0 --o
library/python-2/tkinter-27 2.7.18-2022.0.0.3 i-

library/python/tkinter-34 3.4.10-2020.0.1.2 --o
library/python/tkinter-35 3.5.10-2022.0.0.1 ---
library/python/tkinter-37 3.7.13-2022.0.0.1 ---
library/python/tkinter-39 3.9.13-2022.0.0.3 i--
╰─➤ python3.9
Python 3.9.13 (main, Jul 8 2022, 09:32:41)
[GCC 7.5.0] on sunos5
Type "help", "copyright", "credits" or "license" for more information.

import tkinter

Actions #2

Updated by Marcel Telka 6 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF