This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Python Tkinter


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]