Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'root': 0.05; '21,': 0.07; 'debug': 0.07; 'tkinter': 0.07; 'versions.': 0.07; 'indeed,': 0.09; 'lawrence': 0.09; 'sure,': 0.09; 'window.': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'systems.': 0.12; '2.7': 0.14; 'windows': 0.15; 'combinations': 0.16; 'fail,': 0.16; 'fixes.': 0.16; 'laboratory': 0.16; 'problem!': 0.16; 'suggested,': 0.16; 'tk.': 0.16; 'tkversion': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'slightly': 0.19; 'help.': 0.21; '>>>': 0.22; 'import': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'error': 0.23; '>>>': 0.24; 'text.': 0.24; 'url:gov': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'help!': 0.26; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'google,': 0.29; 'related': 0.29; 'label': 0.30; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'probably': 0.32; 'text': 0.33; 'running': 0.33; 'skip:& 30': 0.33; 'message.': 0.35; "can't": 0.35; 'received:209.85': 0.35; 'computing': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'curious': 0.36; 'installing': 0.36; 'received:gov': 0.36; 'thanks': 0.36; 'should': 0.36; 'so,': 0.37; 'received:209': 0.37; 'performance': 0.37; 'window': 0.38; 'issue': 0.38; 'pm,': 0.38; 'skip:& 20': 0.39; '(from': 0.39; 'how': 0.40; 'days': 0.60; 'even': 0.60; 'then,': 0.60; 'url:5': 0.61; 'simple': 0.61; 'national': 0.62; 'high': 0.63; 'day.': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'within': 0.65; 'services': 0.66; 'hours': 0.66; 'here': 0.66; 'believe': 0.68; 'bothered': 0.68; 'berkeley,': 0.84; 'installer': 0.84; 'laughed': 0.84; 'rd.': 0.84; 'reply!': 0.84; 'song': 0.84; 'releases.': 0.91 X-Ironport-SBRS: 4.8 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AscBAB8AfVPRVcAzlGdsb2JhbABWAw6DTViCaYFCqHuNeYh9AYEECBYOAQEBAQcLCwkSKoIlAQEEASNWBQsLCwMFLwICIhIBBQEOAQ0GE4g5CAWka4wRpUIXiTCFDhAHEYJkgUsEhF4ChUCPTpEzGCmEKF4fMA X-IronPort-AV: E=Sophos;i="4.98,881,1392192000"; d="scan'208";a="49194003" X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=0eQ/h72zEqDung6rQozf4/sPmsZS6aWiRjAIZeUgIkM=; b=Y/xAFRAcMCGTSTzjLJQp26JTz7WQfS/9XWKRwBFYG7MdFR+oA2irfLKQ95i6oLCmJW jWN0wdcRmFe9C0RAI1xaeNFCHvAoI96CvDHWu+P7y+TiGdm6ONzkJolGbRdiNqfW82+j 5ziHCVhNCEVvjqEaNYYAk5/u8bhIG+D8LT292O6+ESD6is4FrHE8LPAtRL4jZB2yi51f uTPK9wpeeQ8BcwaJbpK2D45hcXO7BKLk9T0GjsPAsh30TJyOXtpOkYYGQ/QbQeZgVddt MmJd38BNmVlUbS/YRRce1cX2AwtXZAj5GmLlSsCH2Gbid2tXSwZEEcN/ofy+K+prspOW wvrQ== X-Gm-Message-State: ALoCoQl1nDDmyJA2E7jTDQpSt734zTBnKXg2Xf14ZqyIcDSjhdJEaMFx2+ocpWu5Xi/cG+66X8/g+Tp8xDxePnTEB5KfZS02bTa+7Aot5eU0PUE3HUcm94E7LfF3VdgUj9sJA1hboqnz X-Received: by 10.140.108.163 with SMTP id j32mr70327083qgf.56.1400701435185; Wed, 21 May 2014 12:43:55 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.108.163 with SMTP id j32mr70327067qgf.56.1400701435109; Wed, 21 May 2014 12:43:55 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 May 2014 14:43:55 -0500 Subject: Re: tkinter errors out without clear message From: Kai Song To: Terry Reedy Content-Type: multipart/alternative; boundary=001a11394fb479ed5104f9ee3712 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 166 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400701506 news.xs4all.nl 2865 [2001:888:2000:d::a6]:47043 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71870 --001a11394fb479ed5104f9ee3712 Content-Type: text/plain; charset=UTF-8 Hi Terry, I managed to find the problem! As you suggested, I installed newer version of tk/8.5.15. Then, the same test will still fail, but the error message has content now. It complains about missing font. I did some google, then fix it by installing "dejavu-sans-fonts". I laughed when I found the problem, and indeed, this small bug has bothered me for a whole day. Thanks again for your help. I would probably spend hours and days before even think about trying newer version tk. :) Best, Kai On Wed, May 21, 2014 at 1:55 PM, Kai Song wrote: > Hi Terry, > > Thanks for your reply! > > >> Nasty. I have seen TclErrors, but with a message. >> >> Here is a simple test I just ran (from within Idle) on Win7, 2.7.6. >> >> >>> import Tkinter as tk >> >>> root = tk.Tk() >> >>> tk.Label(root, text = 'label text').pack() >> >>> tk.mainloop() >> >> and I see a window with label with text. >> >> tk._test() works too, with slightly more involved window. >> > > I tried this, but it panics in the same way when running tk.Label(). > Again, I can see an empty window after "root=tk.Tk()". > > >> >> You said you tried 2.7.5. I believe 2.7.6 has some tkinter bug fixes. >> There is also the issue that TkVersion == 8.5 is underspecied -- there >> are multiple bugfix releases. The 2.7 Windows installer has been installing >> 8.5.2, which has some bugs, but 2.7.7 will install 8.5.13, which is much >> better. > > > Sure, I can try with some other combinations of python/tk versions. > However, I tried on other SL6 machines, they have the same version (SL6.5), > and same tests work on those systems. So, the python/2.6.6 and tk-6.5.7 > should work... > > I can't recall how I set up these systems differently, but I am worried > that there are other non-tk/python related issues... I am just curious if > there are other ways to debug this other than python gdb? > > Thanks again for your help! > > Kai > > > > -- > Kai Song > 1.510.495.2180 > 1 Cyclotron Rd. Berkeley, CA94720, MS-50B 3209 > High Performance Computing Services (HPCS) > Lawrence Berkeley National Laboratory - http://scs.lbl.gov > -- Kai Song 1.510.495.2180 1 Cyclotron Rd. Berkeley, CA94720, MS-50B 3209 High Performance Computing Services (HPCS) Lawrence Berkeley National Laboratory - http://scs.lbl.gov --001a11394fb479ed5104f9ee3712 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Terry,

I managed to find the problem= ! As you suggested, I installed newer version of tk/8.5.15. Then, the same test will still fail, but the error message = has content now. It complains about missing font. I did some google, then f= ix it by installing "dejavu-sans-fonts".

I laughed when I found the problem, and indeed, this sm= all bug has bothered me for a whole day.

Thanks ag= ain for your help. I would probably spend hours and days before even think = about trying newer version tk. :)

Best,

Kai

=


On Wed,= May 21, 2014 at 1:55 PM, Kai Song <ksong@lbl.gov> wrote:
Hi Terry,

Thanks for your reply!


Nasty. I have seen TclErrors, but with a message.

Here is a simple test I just ran (from within Idle) on Win7, 2.7.6.

>>> import Tkinter as tk
>>> root =3D tk.Tk()
>>> tk.Label(root, text =3D 'label text').pack()
>>> tk.mainloop()

and I see a window with label with text.

tk._test() works too, with slightly more involved window.
<= div>
I tried this, but it panics in the same way when r= unning tk.Label(). Again, I can see an empty window after "root=3Dtk.T= k()".=C2=A0
=C2=A0

You said you tried 2.7.5. I believe 2.7.6 has some tkinter bug fixes.
There is also the issue that TkVersion =3D=3D 8.5 is underspecied -- there = are multiple bugfix releases. The 2.7 Windows installer has been installing= 8.5.2, which has some bugs, but 2.7.7 will install 8.5.13, which is much b= etter.

Sure, I can try with some other combinations of p= ython/tk versions. However, I tried on other SL6 machines, they have the sa= me version (SL6.5), and same tests work on those systems. So, the python/2.= 6.6 and tk-6.5.7 should work...=C2=A0

I can't recall how I set up these systems different= ly, but I am worried that there are other non-tk/python related issues... I= am just curious if there are other ways to debug this other than python gd= b?

Thanks again for your help!

Kai



--
Kai S= ong
<ksong@lbl.gov>= ; 1= .510.495.2180
1 Cyclotron Rd. Berkeley, CA94720, MS-50B 3209
High Performance Computin= g Services (HPCS)
Lawrence Berkeley National Laboratory - http://scs.lbl.gov



--
Kai Song
= <ksong@lbl.gov>= ; 1.510.495.2180
1 Cyclotron Rd. Berkeley, CA94720, MS-50B 3209
High = Performance Computing Services (HPCS)
Lawrence Berkeley National Laboratory - http://scs.lbl.gov --001a11394fb479ed5104f9ee3712--