From unknown Sat Aug 16 18:11:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71567: python tkinter library not found in guix shell Resent-From: timotheemathieu@mailoo.org Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 15 Jun 2024 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71567 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 71567@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171845968130731 (code B ref -1); Sat, 15 Jun 2024 13:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jun 2024 13:54:41 +0000 Received: from localhost ([127.0.0.1]:46528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sITrc-0007za-Dx for submit@debbugs.gnu.org; Sat, 15 Jun 2024 09:54:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:49738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIQYT-0003xt-IS for submit@debbugs.gnu.org; Sat, 15 Jun 2024 06:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIQYS-0007qo-HZ for bug-guix@gnu.org; Sat, 15 Jun 2024 06:22:40 -0400 Received: from msg-4.mailo.com ([213.182.54.15] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIQYQ-0001n3-93 for bug-guix@gnu.org; Sat, 15 Jun 2024 06:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1718446952; bh=0jnXn4TLpsJNYwMz5pJCDgt0DNXBYibeFKv5zcHGT9M=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: Content-Type; b=YaTP1qUlIm0wo7cIlMIQjsAT1++RVaAs+CVDrWTULazVV5uOSw5LfY0pq4xfc6rxm ZrntpqG30H/tZ/a5VFo1sHh006+m5Qj40v4IRGG11eyVj1DInRc3C8iob695KLQRpH Agg496DpAxv39292Wv3QfCx1cFZ2/Q4+caAEHXsc= Received: by www.net-c.com with http webmail; Sat, 15 Jun 2024 12:22:32 +0200 (CEST) X-EA-Auth: w3qWQ7ZuByzxc44WPI8iXiRmm/qtOIC20zu6ACEOctVf/Afi6hv+lxcGWlDC05YHkyV7EioDTQsHeNfGKSwMNToCiRS9kzGk From: timotheemathieu@mailoo.org Date: Sat, 15 Jun 2024 12:22:32 +0200 (CEST) X-Priority: 3 MIME-Version: 1.0 X-Mailer: COMS/EA22.05/r20240207 Message-ID: Content-Type: multipart/alternative; boundary="----=_NextPart_001_666d6b68_a54_a47d3b2" Received-SPF: pass client-ip=213.182.54.15; envelope-from=timotheemathieu@mailoo.org; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sat, 15 Jun 2024 09:54:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------=_NextPart_001_666d6b68_a54_a47d3b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I want to use guix shell for development environment with python, and more= precisely, I want to usethe=C2=A0 tkinter library in python.=20 According to https://issues.guix.gnu.org/20889 I believed that tkinter sho= uld be automatically included into python but when I launch=20 guix shell -CN=C2=A0 python tk tcl -- python3 -m tkinter I get Traceback (most recent call last): =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 187, in _run_module_as_main =C2=A0=C2=A0=C2=A0 mod_name, mod_spec, code =3D _get_module_details(mod_na= me, _Error) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 146, in _get_module_details =C2=A0=C2=A0=C2=A0 return _get_module_details(pkg_main_name, error) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 110, in _get_module_details =C2=A0=C2=A0=C2=A0 __import__(pkg_name) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/tkinter/__init__.py", line 37, in =C2=A0=C2=A0=C2=A0 import _tkinter # If this fails your Python may not be = configured for Tk ModuleNotFoundError: No module named '_tkinter' whereas, python3 -m tkinter works perfectly well on the host OS (which is = a foreign os, not guix-SD). I did a guix pull pretty recently, guix is up t= o date. Is this a bug or is there a specific way to install python so that we get = tkinter at the same time ?=20 Thanks. ------=_NextPart_001_666d6b68_a54_a47d3b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I want to use guix shell for devel= opment environment with python, and more precisely, I want to usethe=C2=A0 = tkinter library in python.
According to https://issues.guix.= gnu.org/20889 I believed that tkinter should be automatically included into= python but when I launch

guix shell -CN=C2= =A0 python tk tcl -- python3 -m tkinter

I get

Traceback (most recent call last):
=C2=A0 File &quo= t;/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/= runpy.py", line 187, in _run_module_as_main
=C2=A0=C2=A0=C2=A0 mod_= name, mod_spec, code =3D _get_module_details(mod_name, _Error)
=C2=A0 Fi= le "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/pyth= on3.10/runpy.py", line 146, in _get_module_details
=C2=A0=C2=A0=C2= =A0 return _get_module_details(pkg_main_name, error)
=C2=A0 File "/= gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/run= py.py", line 110, in _get_module_details
=C2=A0=C2=A0=C2=A0 __impor= t__(pkg_name)
=C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6= f7f-python-3.10.7/lib/python3.10/tkinter/__init__.py", line 37, in <= ;module>
=C2=A0=C2=A0=C2=A0 import _tkinter # If this fails your Pyth= on may not be configured for Tk
ModuleNotFoundError: No module named '_t= kinter'

whereas, python3 -m tkinter works perfectl= y well on the host OS (which is a foreign os, not guix-SD). I did a guix pu= ll pretty recently, guix is up to date.

Is thi= s a bug or is there a specific way to install python so that we get tkinter= at the same time ?

Thanks.
------=_NextPart_001_666d6b68_a54_a47d3b2-- From unknown Sat Aug 16 18:11:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: timotheemathieu@mailoo.org Subject: bug#71567: closed (Re: bug#71567: python tkinter library not found in guix shell) Message-ID: References: X-Gnu-PR-Message: they-closed 71567 X-Gnu-PR-Package: guix Reply-To: 71567@debbugs.gnu.org Date: Sun, 16 Jun 2024 14:10:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1718547002-13145-1" This is a multi-part message in MIME format... ------------=_1718547002-13145-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71567: python tkinter library not found in guix shell which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71567@debbugs.gnu.org. --=20 71567: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71567 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1718547002-13145-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71567-close) by debbugs.gnu.org; 16 Jun 2024 14:09:42 +0000 Received: from localhost ([127.0.0.1]:60593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIqZh-0003Ox-Jm for submit@debbugs.gnu.org; Sun, 16 Jun 2024 10:09:41 -0400 Received: from tobias.gr ([80.241.217.52]:34724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIqZf-0003Oj-2p for 71567-close@debbugs.gnu.org; Sun, 16 Jun 2024 10:09:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=rUwWV/LoMh+KZ KHsxo8H3OhwTOIZ0aRQwy5iJkQDIFs=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=cuO2iM7wptyibQg5vNSvSgCouZ21LSyX+9XaUnlyAJ12 iMBYzZgqhxau4Hzydskz4//OzM3C37QkXWhlJiRWpZF+COwza2viv/iSZR+c+bTYVAVaDM WG+kwoNvTybZvkIfm9TRWdEr4m/W1s9X7sz+6mHKd9bVIHpyEe3zDSE19oghM37AYf/uRs 7OJX0/S0TT3JxxbWd9Qcoj2nhbIoqsOo+JhKvqJwplw4m+KN16O28avZNS8ITgPGpehwTK UbSIJXB0CVEXUFL8A1bSFb6DZqp/tMcWi+s4wMwZU8iT/iKw2EUJAD7UauKXxT01uFOz/4 SeC5XJK6ZmUF1fxCLA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 47259c58 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 16 Jun 2024 14:09:24 +0000 (UTC) Date: Sun, 16 Jun 2024 14:09:32 +0000 From: Tobias Geerinckx-Rice To: timotheemathieu@mailoo.org, 71567-close@debbugs.gnu.org Subject: Re: bug#71567: python tkinter library not found in guix shell In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; prefer-encrypt=mutual; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/n8Eh2Y4TbxJiDo XUT72XY/RfPH1qrMIP3EI/NNL4LQeGG1n+625k3OVWcRVXG2vRrB6qurLmGkLEmjXWCFD9cCRGfH LeajLm9sM+t/nZPZ3btetcmK9tM2EwivyLUNhrTk73UUnI4CSAzdO2cISqo9zSMtFgj2alqd2fOR s7CKfEn+5PquruDbp/Ej7dOOrjgWSCXLDDYXRrtaKrLz/dhqq5ftFYi9tUTTQecFotM08fPtu+Kw JMP2ySHCkUqp0GvrUCeSRPAJZsmJrd535y+LlRhnqb0mbG4dgMa8A6xhkFYugnqldy/q7kX1EmRI 686N7bA6fh1MCQARAQABtCRUb2JpYXMgR2VlcmluY2t4LVJpY2UgPG1lQHRvYmlhcy5ncj6JAlIE EwEKADwCHgECF4ACGQECGwMWIQT1vFU0w28Ah7OdNu8cncT+udt8SwUCXpe0rAYLCQgHCgQFFQoJ CAsFFgMCAQAACgkQHJ3E/rnbfEu5IhAAk+0BW/twLmx1xMmeXn+I7Ne6SG3++0TRBduEaGWV3n59 lX6XPZUQdAPpS4uy0H+c90Owkw+aWU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fU3e8ikFStTBer/Bu5tXa5 RPh90F6l2DNRitUdv+7vAiFnAuP61ZSUSqRbOiE1SPTv4cGBOCgB7xIOU6+rKzlweR/vO0otLZc+ TyFnSKPrfzg= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71567-close X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Timothee, On 15 June 2024 10:22:32 UTC, timotheemathieu--- via Bug reports for GNU G= uix wrote: >According to https://issues=2Eguix=2Egnu=2Eorg/20889 I believed that tkin= ter should be automatically included into python Not quite=2E Quoting Ludo' in that thread: "I think we should move tkinter*=2Eso to a separate output of the Python= packages" And indeed: ~ =CE=BB guix show python name: python version: 3=2E10=2E7 outputs: + tk: [description missing] + idle: [description missing] + out: everything else [=2E=2E=2E] So there's no bug, you just never included tkinter in your environment whe= n you thought you had=2E Iinstead of >guix shell -CN=C2=A0 python tk tcl -- python3 -m tkinter try ~ =CE=BB guix shell -CN python{,:tk} -- python3 -m tkinter 'python{,:tk}' is bash shorthand that expands to 'python python:tk'=2E I get a $DISPLAY error because this machine doesn't run X, but that implie= s success, right? Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E ------------=_1718547002-13145-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Jun 2024 13:54:41 +0000 Received: from localhost ([127.0.0.1]:46528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sITrc-0007za-Dx for submit@debbugs.gnu.org; Sat, 15 Jun 2024 09:54:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:49738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIQYT-0003xt-IS for submit@debbugs.gnu.org; Sat, 15 Jun 2024 06:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIQYS-0007qo-HZ for bug-guix@gnu.org; Sat, 15 Jun 2024 06:22:40 -0400 Received: from msg-4.mailo.com ([213.182.54.15] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIQYQ-0001n3-93 for bug-guix@gnu.org; Sat, 15 Jun 2024 06:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1718446952; bh=0jnXn4TLpsJNYwMz5pJCDgt0DNXBYibeFKv5zcHGT9M=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: Content-Type; b=YaTP1qUlIm0wo7cIlMIQjsAT1++RVaAs+CVDrWTULazVV5uOSw5LfY0pq4xfc6rxm ZrntpqG30H/tZ/a5VFo1sHh006+m5Qj40v4IRGG11eyVj1DInRc3C8iob695KLQRpH Agg496DpAxv39292Wv3QfCx1cFZ2/Q4+caAEHXsc= Received: by www.net-c.com with http webmail; Sat, 15 Jun 2024 12:22:32 +0200 (CEST) X-EA-Auth: w3qWQ7ZuByzxc44WPI8iXiRmm/qtOIC20zu6ACEOctVf/Afi6hv+lxcGWlDC05YHkyV7EioDTQsHeNfGKSwMNToCiRS9kzGk From: timotheemathieu@mailoo.org To: bug-guix@gnu.org Date: Sat, 15 Jun 2024 12:22:32 +0200 (CEST) Subject: python tkinter library not found in guix shell X-Priority: 3 MIME-Version: 1.0 X-Mailer: COMS/EA22.05/r20240207 Message-ID: Content-Type: multipart/alternative; boundary="----=_NextPart_001_666d6b68_a54_a47d3b2" Received-SPF: pass client-ip=213.182.54.15; envelope-from=timotheemathieu@mailoo.org; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 15 Jun 2024 09:54:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------=_NextPart_001_666d6b68_a54_a47d3b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I want to use guix shell for development environment with python, and more= precisely, I want to usethe=C2=A0 tkinter library in python.=20 According to https://issues.guix.gnu.org/20889 I believed that tkinter sho= uld be automatically included into python but when I launch=20 guix shell -CN=C2=A0 python tk tcl -- python3 -m tkinter I get Traceback (most recent call last): =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 187, in _run_module_as_main =C2=A0=C2=A0=C2=A0 mod_name, mod_spec, code =3D _get_module_details(mod_na= me, _Error) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 146, in _get_module_details =C2=A0=C2=A0=C2=A0 return _get_module_details(pkg_main_name, error) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/runpy.py", line 110, in _get_module_details =C2=A0=C2=A0=C2=A0 __import__(pkg_name) =C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib= /python3.10/tkinter/__init__.py", line 37, in =C2=A0=C2=A0=C2=A0 import _tkinter # If this fails your Python may not be = configured for Tk ModuleNotFoundError: No module named '_tkinter' whereas, python3 -m tkinter works perfectly well on the host OS (which is = a foreign os, not guix-SD). I did a guix pull pretty recently, guix is up t= o date. Is this a bug or is there a specific way to install python so that we get = tkinter at the same time ?=20 Thanks. ------=_NextPart_001_666d6b68_a54_a47d3b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I want to use guix shell for devel= opment environment with python, and more precisely, I want to usethe=C2=A0 = tkinter library in python.
According to https://issues.guix.= gnu.org/20889 I believed that tkinter should be automatically included into= python but when I launch

guix shell -CN=C2= =A0 python tk tcl -- python3 -m tkinter

I get

Traceback (most recent call last):
=C2=A0 File &quo= t;/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/= runpy.py", line 187, in _run_module_as_main
=C2=A0=C2=A0=C2=A0 mod_= name, mod_spec, code =3D _get_module_details(mod_name, _Error)
=C2=A0 Fi= le "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/pyth= on3.10/runpy.py", line 146, in _get_module_details
=C2=A0=C2=A0=C2= =A0 return _get_module_details(pkg_main_name, error)
=C2=A0 File "/= gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/run= py.py", line 110, in _get_module_details
=C2=A0=C2=A0=C2=A0 __impor= t__(pkg_name)
=C2=A0 File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6= f7f-python-3.10.7/lib/python3.10/tkinter/__init__.py", line 37, in <= ;module>
=C2=A0=C2=A0=C2=A0 import _tkinter # If this fails your Pyth= on may not be configured for Tk
ModuleNotFoundError: No module named '_t= kinter'

whereas, python3 -m tkinter works perfectl= y well on the host OS (which is a foreign os, not guix-SD). I did a guix pu= ll pretty recently, guix is up to date.

Is thi= s a bug or is there a specific way to install python so that we get tkinter= at the same time ?

Thanks.
------=_NextPart_001_666d6b68_a54_a47d3b2-- ------------=_1718547002-13145-1--