From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20889: python Tkinter Date: Wed, 11 Nov 2015 22:44:42 +0100 Message-ID: <87io589po5.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwdDS-00029S-5l for bug-guix@gnu.org; Wed, 11 Nov 2015 16:46:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwdDO-0004Tl-89 for bug-guix@gnu.org; Wed, 11 Nov 2015 16:46:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwdDO-0004Tg-4J for bug-guix@gnu.org; Wed, 11 Nov 2015 16:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZwdDN-0003HC-UT for bug-guix@gnu.org; Wed, 11 Nov 2015 16:46:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Federico Beffa's message of "Mon, 9 Nov 2015 10:42:39 +0100") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Federico Beffa Cc: 20889@debbugs.gnu.org Federico Beffa skribis: > >>> root =3D tkinter.Tk() > Traceback (most recent call last): > File "", line 1, in > File "/gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3/lib/pyth= on3.4/tkinter/__init__.py", > line 1851, in __init__ > self.tk =3D _tkinter.create(screenName, baseName, className, > interactive, wantobjects, useTk, sync, use) > _tkinter.TclError: Can't find a usable tk.tcl in the following directorie= s: > /gnu/store/sd4fcdk9yzh1s0230fjx1yfwk9pl71bf-tcl-8.6.4/lib/tcl8.6/tk8.6 > /gnu/store/sd4fcdk9yzh1s0230fjx1yfwk9pl71bf-tcl-8.6.4/lib/tk8.6 > /gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3/lib/tk8.6 > /gnu/store/lib/tk8.6 > /gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3/library This error message comes from Tcl, in file =E2=80=98auto.tcl=E2=80=99, proc= edure =E2=80=98tcl_findLibrary=E2=80=99. We=E2=80=99d need to find where the call comes from and hard-code a search = path in there maybe? > Did you successfully test it? I just did =E2=80=9Cimport tkinter.=E2=80=9D > with: > > $TCLLIBPATH=3D/gnu/store/c4rpx4050d0qkccwbzggabag403b31l3-tk-8.6.4/lib py= thon3 > > it works. So I guess that 'tcl' needs a search-path-specification. Yes. That wouldn=E2=80=99t help for Python though, where we need to hard-c= ode the search path somehow. > ... and the configure script for Python defines the flag > '--with-tcltk-libs'. Maybe that would help... I don=E2=80=99t think it would help because Python finds Tcl and Tk anyway. Thanks, Ludo=E2=80=99.