Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!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.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'debug': 0.07; 'tkinter': 0.07; 'tries': 0.07; '__init__': 0.09; 'lawrence': 0.09; 'python': 0.11; 'advance!': 0.16; 'appreciated!': 0.16; 'laboratory': 0.16; 'fix': 0.17; 'trying': 0.19; 'community,': 0.19; '>>>': 0.22; 'code,': 0.22; 'import': 0.22; 'error': 0.23; '>>>': 0.24; 'url:gov': 0.24; 'skip:" 30': 0.26; 'skip:" 40': 0.26; 'skip:_ 20': 0.27; 'tried': 0.27; 'point': 0.28; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; '"",': 0.31; 'file': 0.32; 'there.': 0.32; 'this.': 0.32; 'linux': 0.33; '(most': 0.33; 'actual': 0.34; 'skip:_ 10': 0.34; 'could': 0.34; 'message.': 0.35; 'problem': 0.35; 'advice': 0.35; 'received:209.85': 0.35; 'problem.': 0.35; 'computing': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'received:gov': 0.36; 'thanks': 0.36; 'similar': 0.36; 'so,': 0.37; 'received:209.85.216': 0.37; 'received:209': 0.37; 'performance': 0.37; 'skip:o 20': 0.38; 'skip:& 10': 0.38; 'hat': 0.38; 'nov': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'skip:_ 30': 0.39; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; '8bit%:6': 0.40; 'how': 0.40; 'national': 0.62; 'high': 0.63; 'more': 0.64; 'dear': 0.65; 'services': 0.66; 'due': 0.66; 'here': 0.66; 'default': 0.69; 'berkeley,': 0.84; 'rd.': 0.84; 'scratch,': 0.84; 'song': 0.84; '2013,': 0.91 X-Ironport-SBRS: 4.8 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4BAP7OfFPRVdiqlGdsb2JhbABWA4NbWIJpqWRXjXmBQgGIPwgWDgEBAQEHCwsJEiqCJQEBBCR1BzcCJBIBBQEWHxSIJQgFoT+DEYwRpWAXjmaCIw8yEoE5BIogj06BPY92GCmCcoIUHw X-IronPort-AV: E=Sophos;i="4.98,880,1392192000"; d="scan'208";a="50851721" X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ZJWQIrtD9jM7RhKcr1MgVC9aBvZAPua4fzsPSEvf4/E=; b=C2BdObckVhqEULv/3jg2101gIoJjyRp3DPWWkwZ0EsiLOZifz+Jwi2oShHfsLkMnaD R4V/Mdh0ErmtPIa5sJiVoge6QrfaP7VvJfyS9lHvLGobWMack1VcBok3kt7kOkhayUo1 4pzqJLMC/vfV+E8ypddOskhvRDDzvKcdI5I9S3+sdjY+q+S1LoEGNgvBYIel15MKqFr4 aFq1TW8NL/jv0IKUQSMHQkScjArJxnMJnNkef7iWGfbAG4HEq3BMnX3FtzKV2qtTo9WK lpTX8gkx33nD9F2nQRx5OzZL3sc2VksGOE87PpNJcLA6EYvF9KnQuaGc2wQhSuLfa3Dq cv0w== X-Gm-Message-State: ALoCoQnwACKSEhaG+Kg7yRpOfWcbKcI7ZTy5kJSssAiPiN3ZQrEQIarKP1zuTLTqKdP35oyHtMJfr/IsU9KMgT1RKDmaPCiohP6iOVPLhKVSJlBeZ4Xb5Rd+Plvx+EF8mu5hPI6ITX7k X-Received: by 10.224.25.133 with SMTP id z5mr5319902qab.97.1400688662264; Wed, 21 May 2014 09:11:02 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.25.133 with SMTP id z5mr5319884qab.97.1400688662194; Wed, 21 May 2014 09:11:02 -0700 (PDT) Date: Wed, 21 May 2014 11:11:02 -0500 Subject: tkinter errors out without clear message From: Kai Song To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7bdc17a426baba04f9eb3e21 X-Mailman-Approved-At: Wed, 21 May 2014 18:20:12 +0200 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: 95 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400689213 news.xs4all.nl 2937 [2001:888:2000:d::a6]:48301 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71865 --047d7bdc17a426baba04f9eb3e21 Content-Type: text/plain; charset=UTF-8 Dear Python community, I have been trying to make Tkinter work on my Scientific Linux 6 (SL6) system. The python version is the SL6 default Python/2.6.6, and the tkinter is also from SL6 repository, "tkinter-2.6.6-51.el6.x86_64". I was able to import _tkinter and Tkinter, and the _test() will bring up an empty window, but it will then fail without any actual error message. I think it's when it tries to create buttons. I tried to use python gdb to debug through the code, but It's hard to pin point the problem. Here is the output: [kai@localhost ~ ]$ python Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import _tkinter >>> import Tkinter >>> Tkinter._test() Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 3757, in _test label = Label(root, text=text) File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 2466, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1932, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError >>> I also tried to build python/2.7.5 from scratch, and this problem still there. So, I suspect it could be due to system configuration, but without actual error message, I don't know how to fix this. Did any of you come across similar issues for Tkinter? Any advice would be greatly appreciated! Thanks in advance! 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 --047d7bdc17a426baba04f9eb3e21 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Python community,

I have been tryi= ng to make Tkinter work on my Scientific Linux 6 (SL6) system. The python v= ersion is the SL6 default Python/2.6.6, and the tkinter is also from SL6 re= pository, "tkinter-2.6.6-51.el6.x86_64".

I was able to import _tkinter and Tkinter, and the _tes= t() will bring up an empty window, but it will then fail without any actual= error message. I think it's when it tries to create buttons. I tried t= o use python gdb to debug through the code, but It's hard to pin point = the problem.

Here is the output:
[kai@localhost ~ ]$ = python
Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37)=C2=A0
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type &quo= t;help", "copyright", "credits" or "license&q= uot; for more information.
>>> import _tkinter
>>> import Tkinter
>>> Tkinter._test()
Traceback (most recent call l= ast):
=C2=A0 File "<stdin>", line 1, in <modul= e>
=C2=A0 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 3= 757, in _test
=C2=A0 =C2=A0 label =3D Label(root, text=3Dtext)
=C2=A0 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", lin= e 2466, in __init__
=C2=A0 =C2=A0 Widget.__init__(self, master, 'label', cnf, kw)<= /div>
=C2=A0 File "/usr/lib64/python2.6/lib-tk/Tkinter.py", l= ine 1932, in __init__
=C2=A0 =C2=A0 (widgetName, self._w) + extra= + self._options(cnf))
_tkinter.TclError
>>>=C2=A0

I also tried to build python/2.7.5 from scratch, and this problem s= till there. So, I suspect it could be due to system configuration, but with= out actual error message, I don't know how to fix this. Did any of you = come across similar issues for Tkinter? Any advice would be greatly appreci= ated!

Thanks in advance!

Kai

--
Kai Song
<ksong@lbl.gov> 1.510.495.2180
1 Cyclotron Rd. Berkele= y, CA94720, MS-50B 3209
High Performance Computing Services (HPCS)
Lawrence Berkeley National L= aboratory - http://scs.lbl= .gov
--047d7bdc17a426baba04f9eb3e21--