GNU bug report logs -
#20889
python Tkinter
Previous Next
Reported by: Federico Beffa <beffa <at> ieee.org>
Date: Wed, 24 Jun 2015 07:15:02 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
Message #47 received at 20889 <at> debbugs.gnu.org (full text, mbox):
Federico Beffa <beffa <at> ieee.org> skribis:
> >>> root = tkinter.Tk()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3/lib/python3.4/tkinter/__init__.py",
> line 1851, in __init__
> self.tk = _tkinter.create(screenName, baseName, className,
> interactive, wantobjects, useTk, sync, use)
> _tkinter.TclError: Can't find a usable tk.tcl in the following directories:
> /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 ‘auto.tcl’, procedure
‘tcl_findLibrary’.
We’d 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 “import tkinter.”
> with:
>
> $TCLLIBPATH=/gnu/store/c4rpx4050d0qkccwbzggabag403b31l3-tk-8.6.4/lib python3
>
> it works. So I guess that 'tcl' needs a search-path-specification.
Yes. That wouldn’t help for Python though, where we need to hard-code
the search path somehow.
> ... and the configure script for Python defines the flag
> '--with-tcltk-libs'. Maybe that would help...
I don’t think it would help because Python finds Tcl and Tk anyway.
Thanks,
Ludo’.
This bug report was last modified 9 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.