From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Leung Subject: bug#37775: Python 2.7 not configured for Tk Date: Wed, 16 Oct 2019 18:52:35 +0200 Message-ID: References: <664d8e495d82feeafcb2340bc87daa020ca5adff.camel@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a66f1c059509efba" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39411) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKmYo-0005tN-By for bug-guix@gnu.org; Wed, 16 Oct 2019 12:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKmYm-0004fD-8K for bug-guix@gnu.org; Wed, 16 Oct 2019 12:54:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKmYk-0004eV-M5 for bug-guix@gnu.org; Wed, 16 Oct 2019 12:54:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKmYk-0005Kl-HU for bug-guix@gnu.org; Wed, 16 Oct 2019 12:54:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <664d8e495d82feeafcb2340bc87daa020ca5adff.camel@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Jesse Gibbons , 37775-done@debbugs.gnu.org --000000000000a66f1c059509efba Content-Type: text/plain; charset="UTF-8" Thanks! On Wed, Oct 16, 2019 at 3:50 PM Jesse Gibbons wrote: > On Wed, 2019-10-16 at 00:38 -0700, Brian Leung wrote: > > Hi Guix, > > > > Python 2.7 doesn't seem like it handles Tk properly right now, at least > on > > my machine: > > > > >>> import Tkinter > > Traceback (most recent call last): > > File "", line 1, in > > File "/gnu/store/h2crv1mpc5qi05xdnn84fjp9g4gyicsl-python2- > > 2.7.16/lib/python2.7/lib-tk/Tkinter.py", line 39, in > > import _tkinter # If this fails your Python may not be configured for > > Tk > > ImportError: No module named _tkinter > Python has a tk output to keep the python package small. > - If you're using tk for a personal script, you will probably need run > 'guix > install python2:tk' > - If you need tk for a package input, you will need to use > '("python2-tk" ,python "tk")' or copy the input from one of the python > packages that uses tk. > > --000000000000a66f1c059509efba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks!

On Wed, Oct 16, 2019 at 3:50 PM Jesse Gibbons <<= a href=3D"mailto:jgibbons2357@gmail.com">jgibbons2357@gmail.com> wro= te:
On Wed, 2019= -10-16 at 00:38 -0700, Brian Leung wrote:
> Hi Guix,
>
> Python 2.7 doesn't seem like it handles Tk properly right now, at = least on
> my machine:
>
> >>> import Tkinter
> Traceback (most recent call last):
>=C2=A0 =C2=A0File "<stdin>", line 1, in <module><= br> >=C2=A0 =C2=A0File "/gnu/store/h2crv1mpc5qi05xdnn84fjp9g4gyicsl-pyt= hon2-
> 2.7.16/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module&g= t;
>=C2=A0 =C2=A0 =C2=A0import _tkinter # If this fails your Python may not= be configured for
> Tk
> ImportError: No module named _tkinter
Python has a tk output to keep the python package small.
- If you're using tk for a personal script, you will probably need run = 'guix
install python2:tk'
- If you need tk for a package input, you will need to use
'("python2-tk" ,python "tk")' or copy the input= from one of the python
packages that uses tk.

--000000000000a66f1c059509efba--