Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'root': 0.05; 'debug': 0.07; 'tkinter': 0.07; 'versions.': 0.07; '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; 'fixes.': 0.16; 'laboratory': 0.16; 'tkversion': 0.16; 'slightly': 0.19; '>>>': 0.22; 'import': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'install': 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; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'related': 0.29; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; 'text': 0.33; 'running': 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; 'skip:& 20': 0.39; '(from': 0.39; 'how': 0.40; 'simple': 0.61; 'national': 0.62; 'high': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'within': 0.65; 'services': 0.66; 'here': 0.66; 'believe': 0.68; 'berkeley,': 0.84; 'installer': 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: AscBANv1fFPRVcAxlGdsb2JhbABWAw6DTViCaao8jXmIfQGBBAgWDgEBAQEHCwsJEiqCJQEBBAEjVgULCwQHAzQCAiISAQUBDgENBhOIOQgFpQKMEaVGF44+EAcRgmSBSwSKII9OkTMYKYQoXh8 X-IronPort-AV: E=Sophos;i="4.98,881,1392192000"; d="scan'208";a="50876931" 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=L6Gt+sfidfLg0PLwXsQHZbC28b8u8ykYG4d7WNS/HkQ=; b=GY/2jE1xemJazG0cl15vDaOfiQ0gmJy4L9w4NFqO+FbP3UAnWxQ76Xv1J9NCqidSN/ 9sgFgZZBiqTyo3DQ7vU8JWIQP4Cvbbc5ST/55T0Co1py+3vMXvjJqDHrWshMHqaMzmrZ jrOCXDgXTeQQJM3ledPKDaVnZ+i9u5+ENvonOTFB8BWFPsewv9rREo1uEANscDoP7Zyi ycBXw8DAZGBBZ4z28U3Zbps/RvB6rrVlkS3/MdWTLYXmMA6kzhDAiJ6IQn+dXjF6Qzty LwJx4fC41917g3xD4PkhnjXhBYWPi6SWAWSRG9sA3MmtFHmKzO49QeHjTgz47JiWte4B B33g== X-Gm-Message-State: ALoCoQk70Us/xG868QVhjxpSG6hc62MM6LpY69gWDJ5jtDFc1pqLQrkrE7doZMD/3HbfS2/tnuLgsoNbxC+n5lumv3P4NBjbyc4maGoGbOibquvqDyklLp96OBlJ951bxqct/kcS531h X-Received: by 10.224.32.138 with SMTP id c10mr60663986qad.35.1400698522366; Wed, 21 May 2014 11:55:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.32.138 with SMTP id c10mr60663974qad.35.1400698522272; Wed, 21 May 2014 11:55:22 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 May 2014 13:55:22 -0500 Subject: Re: tkinter errors out without clear message From: Kai Song To: Terry Reedy Content-Type: multipart/alternative; boundary=047d7b5d9c91db949804f9ed891c 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: 106 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400698529 news.xs4all.nl 2932 [2001:888:2000:d::a6]:39932 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71869 --047d7b5d9c91db949804f9ed891c Content-Type: text/plain; charset=UTF-8 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 --047d7b5d9c91db949804f9ed891c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Terry,

Thanks for your reply!
<= div>

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 running= tk.Label(). Again, I can see an empty window after "root=3Dtk.Tk()&qu= ot;.=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 python/= tk versions. However, I tried on other SL6 machines, they have the same ver= sion (SL6.5), and same tests work on those systems. So, the python/2.6.6 an= d 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!

Ka= i



--
Kai Son= g
<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 --047d7b5d9c91db949804f9ed891c--