X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=4.9 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Date: Tue, 14 Feb 2012 21:25:20 -0500 From: Jason Tishler To: Hans Peter Jepsen Cc: Cygwin Subject: Re: Problems with tkinter after python upgrade on cygwin Message-id: <20120215022520.GC2076@tishler.net> Mail-followup-to: Hans Peter Jepsen , Cygwin References: <908B205B0EBCC1449FC2AA01C62F101C0150DA20 AT filexch DOT lodam DOT local> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline In-reply-to: <908B205B0EBCC1449FC2AA01C62F101C0150DA20@filexch.lodam.local> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hans Peter, On Mon, Feb 13, 2012 at 05:23:37PM +0100, Hans Peter Jepsen wrote: > Dear Jason > > I hope you can help me. In the future, please heed the following: http://cygwin.com/acronyms/#PPIOSPE > I googled for an answer, but did not find any. What about the following Google search on "TclError: no display name and no $DISPLAY environment variable"? http://www.google.com/search?q=TclError%3A+no+display+name+and+no+%24DISPLAY+environment+variable The first item from the above search yields: http://www.linuxquestions.org/questions/programming-9/tcl-error-no-display-name-and-no-display-environment-variable-340184/ > My problem is, that after upgrading Cygwin and with that python and > tcl, and now get this error-message with a program, that worked > before: > > Traceback (most recent call last): > > File "ParamdbTool.py", line 445, in > > tkroot = tk.Tk() > > File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1643, in __init__ > > self.tk = _tkinter.create(screenName, baseName, className, interactive, > wantobjects, useTk, sync, use) > > _tkinter.TclError: no display name and no $DISPLAY environment variable > > > Do you have any ideas on how to get around this. You need to install X, define the DISPLAY environment variable, and start X. After these steps, your Tkinter program should work again. Jason -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple