delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/19/11:46:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 19 Nov 2003 11:46:23 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Python Tkinter
Message-ID: <20031119164623.GA1592@tishler.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20031119162642 DOT 64825 DOT qmail AT web10002 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20031119162642.64825.qmail@web10002.mail.yahoo.com>
User-Agent: Mutt/1.4i

On Wed, Nov 19, 2003 at 08:26:42AM -0800, james pentland wrote:
> how do i configure Python for Tkinter?
> i can not find _tkinter.py.
> 
> >>> import Tkinter
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/python2.3/lib-tk/Tkinter.py", line
> 38, in ?
>     import _tkinter # If this fails your Python may
> not be configured for Tk
> ImportError: dlopen: Win32 error 126

WFM:

    $ python -c 'import Tkinter'
    $

BTW:

    $ fgrep 126 /usr/include/w32api/winerror.h | head -1
    #define ERROR_MOD_NOT_FOUND 126L

Are you using the official Cygwin Python package?  Or, one you built
yourself?  If the latter, what does the following indicate?

    $ cygcheck -c python
    Cygwin Package Information
    Package              Version        Status
    python               2.3.2-1        OK

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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