On 2025-08-09 00:19, Yuri wrote:
Looks like needed Tk package. Installed tk package: guix package install tk
But it python can't find it. Python unable to find this Tk ->tkinter under GUIX.
Here is output with error:
Traceback (most recent call last):
File "/home/user1/downloads/xcalibrate/./xcalibrate", line 306, in <module>
main()
File "/home/user1/downloads/xcalibrate/./xcalibrate", line 287, in main
points = show_tk(n_points, old_cal_inv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user1/downloads/xcalibrate/./xcalibrate", line 100, in show_tk
from tkinter import Tk, Canvas
File
"/gnu/store/c5qarpvwzcz1idryvvpiqd7738jn4rs1-python-3.11.11/lib/python3.11/tkinter/__init__.py",
line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
Please help python find this tkinter in GUIX.
Hi,
I think you are missing the python output that has tkinter.
If you `guix show python`:
name: python
version: 3.11.11
outputs:
+ tk: [description missing]
+ idle: [description missing]
+ out: everything else
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected]
+ [email protected] [email protected] [email protected] [email protected] [email protected]
tzdata@2025a [email protected]
+ [email protected] [email protected]
location: gnu/packages/python.scm:672:2
homepage: https://www.python.org
license: Python Software Foundation License
synopsis: High-level, dynamically-typed programming language
description: Python is a remarkably powerful dynamic programming
language that is used in a
+ wide variety of application domains. Some of its key distinguishing
features include: clear,
+ readable syntax; strong introspection capabilities; intuitive object
orientation; natural
+ expression of procedural code; full modularity, supporting
hierarchical packages;
+ exception-based error handling; and very high level dynamic data types.
In the outputs field you see `tk`.
You need to `guix install python:tk` in order to get it. It's not easy
to find.
Let me know if that fixes the problem.
Cheers,
Ekaitz