www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/14/21:27:47

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 <jason AT tishler DOT net>
To: Hans Peter Jepsen <hpj AT lodam DOT com>
Cc: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: Problems with tkinter after python upgrade on cygwin
Message-id: <20120215022520.GC2076@tishler.net>
Mail-followup-to: Hans Peter Jepsen <hpj AT lodam DOT com>, Cygwin <cygwin AT cygwin DOT com>
References: <908B205B0EBCC1449FC2AA01C62F101C0150DA20 AT filexch DOT lodam DOT local>
MIME-version: 1.0
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <module>
> 
>     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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019