[Pkg-tcltk-devel] Bug#889810: Bug#889810: tk: 'wish' gives console error message; tclsh can't find package Tk

tomas at tuxteam.de tomas at tuxteam.de
Wed Feb 7 12:05:06 UTC 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Feb 07, 2018 at 11:35:36AM +0000, Jasper Taylor wrote:
> Hi Sergei,
> 
> On Wed, 7 Feb 2018 13:36:47 +0300 Sergei Golovan wrote:
> > tags 889810 + moreinfo
> > thanks
> >
> > Hi Jasper,
> >
> > On Wed, Feb 7, 2018 at 12:35 PM, Jasper Taylor wrote:

[...]

> > Judging by a lot of /usr/local in the output I'd say that you have
> some locally
> > installed Tcl/Tk distribution and `wish' is actually
> > `/usr/local/bin/wish'. Can you check
> > this? Does /usr/bin/wish run properly when a full path is specified?
> 
> Thanks for looking at my problem. I don't have anything relevant
> under /usr/local -- the search paths are built into the package.
> 
> I also have access to a Debian system with tk 8.6.0+8 installed. On
> this system, I run tclsh and type
> 
> set auto_path
> 
> and get
> 
> /usr/share/tcltk/tcl8.6 /usr/share/tcltk /usr/lib
> /usr/local/lib/tcltk /usr/local/share/tcltk
> /usr/lib/tcltk/x86_64-linux-gnu /usr/lib/tcltk /usr/lib/tcltk/tcl8.6
> 
> and then running
> 
> package require Tk
> 
> returns 8.6.2 and opens a toplevel Tk window.
> 
> Now on my own system with tk 8.6.0+9I run tclsh and type
> 
> set auto_path
> 
> and get
> 
> /usr/local/lib/tcl8.6 /usr/local/lib /usr/lib
> 
> If I then type
> 
> set auto_path {/usr/share/tcltk/tcl8.6 /usr/share/tcltk /usr/lib
> /usr/local/lib/tcltk /usr/local/share/tcltk
> /usr/lib/tcltk/x86_64-linux-gnu /usr/lib/tcltk
> /usr/lib/tcltk/tcl8.6}
> 
> (so it is the same as it was in 8.6.0+8) then
> 
> package require Tk
> 
> it returns 8.6.6 and opens a toplevel window.

...so everything is fine so far.

>                                         I have added a line to
> my script to set the auto_path to the old value and my application
> now runs OK, although tk and wish should not need this.

And by default they don't. There's something locally modified
on your system making this necessary.

Could you post th first three to four lines of your script?
How do you invoke it?

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlp663IACgkQBcgs9XrR2kbiKACeM4PhX3+9NNM/W7BSEy4EOdSh
tMYAmwdpo7sCL1BAFSeBOxYpeNOPUz3M
=O/JF
-----END PGP SIGNATURE-----



More information about the Pkg-tcltk-devel mailing list