Skip to content

ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

Description:

When trying to "import tkinter" in python 3.13.1-1 I get

Python 3.13.1 (main, Dec  4 2024, 18:05:56) [GCC 14.2.1 20240910] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import tkinter
  File "/usr/lib/python3.13/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

Is a python rebuild against tcl/tk 9.0.1 needed?

Additional info:

  • package version(s): tk 9.0.1-1

Steps to reproduce:

see description

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information