Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Python woes



--------------------------------------------------------
tlug note from matt@example.com
--------------------------------------------------------
Hi--

Well, I waited a bit to see if some of the wizards would have an
authoritative answer. Haven't seen one, so here's my two cents. I'm a
Python beginner too, so take it with a grain of salt.

In <XFMail.970820183544.schweiz@example.com>, on 08/20/97 
   at 06:25 PM, Jim Schweizer <schweiz@example.com> said:


:I was doing a bit of house cleaning and decided that since I had
:upgraded TCL to 7.5 and TK to 4.1 I didn't need the old 7.4 and 4.0
:around anymore so I deleted them. That broke Python :-( 

:jim:~/devel/Python$ python
:Python 1.3 (Jun 22 1996)  [GCC 2.7.0]
:Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> from
:Tkinter import *
:>>> widget = Label(None, text='Hello TLUG!')
:Tcl_Init error: version mismatch: library
:scripts expect Tcl version 7.5b1 or later but the loaded version is
:only 7.4
--SNIP-SNIP-SNIP--
:Tcl_AppInit failed
:>>> 

I recall having a very similar problem a while back. I think I had
installed Python when I first installed Linux, then got Tcl/Tk a few
weeks later--during which time Red Hat Linux had gone from version 4.0
to 4.1, with, I guess, an upgraded Tcl/Tk. I dealt with it by editing
the file 'Tkinter.py' ('/usr/lib/python-1.4/tkinter/Tkinter.py' on my
box). At the time I wasn't learning Python and was a bit impatient, so I
adopted the brutal expedient of simply removing all conditional
statements that referred to the Tk version number. Undoubtedly the wrong
thing to do, but it did what I wanted, which was to get 1 or 2
applications working.

Actually, I think I first tried editing the Tk version numbers in the
Python code, but it didn't work (now that I actually know a little bit
of Python maybe I could figure out *why* it didn't work . . . if I still
have that file around someplace).

Anyway, upgrading your Python might help . . . I'm now using Python 1.4,
Tcl 7.6, and Tk 4.2, and have had no Tkinter errors.

Hope this is of some small use.

Matt Gushee
Oshamanbe, Hokkaido
~ where summer only comes on TV :-/ ~
-- 
-----------------------------------------------------------
matt@example.com
-----------------------------------------------------------

Next TLUG meeting is Saturday October 11, 1997
-----------------------------------------------------------------
a word from the sponsor will appear below
TWICS - Japan's First Public-Access Internet System.
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links