[Pythonmac-SIG] more about Tkinter strangeness

Jan de Leeuw deleeuw@stat.ucla.edu
Sat, 19 Apr 2003 12:25:05 -0700


--Apple-Mail-2--541338527
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	delsp=yes;
	charset=US-ASCII;
	format=flowed

If I comment out the following part of Tkinter.py

#        if tcl_version != _tkinter.TCL_VERSION:
#            raise RuntimeError, \
#            "tcl.h version (%s) doesn't match libtcl.a version (%s)" \
#            % (_tkinter.TCL_VERSION, tcl_version)

then IDLE does run fine. Of course there is not libtcl.a anyway in a  
framework build on the Mac.

Otherwise IDLE exits with the message

Traceback (most recent call last):
   File  
"/Applications/MacPython-2.3/IDLE.app/Contents/Resources/ 
__argvemulator_idle", line 4, in ?
     execfile(os.path.join(os.path.split(__file__)[0], "idle"))
   File "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idle",  
line 12, in ?
     PyShell.main()
   File  
"/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/ 
PyShell.py", line 756, in main
     root = Tk(className="Idle")
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
tk/Tkinter.py", line 1572, in __init__
     raise RuntimeError, \
RuntimeError: tcl.h version (8.4) doesn't match libtcl.a version (8.4)

Does not matter if I use tcl/tk from CVS (which is 8.5) or tcl/tk from  
sourceforge,
(which is 8.4).
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw@stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
   
------------------------------------------------------------------------ 
------------------------- 
        
--Apple-Mail-2--541338527
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

If I comment out the following part of Tkinter.py


#        if tcl_version != _tkinter.TCL_VERSION:

#            raise RuntimeError, \

#            "tcl.h version (%s) doesn't match libtcl.a version (%s)" \

#            % (_tkinter.TCL_VERSION, tcl_version)


then IDLE does run fine. Of course there is not libtcl.a anyway in a
framework build on the Mac.


Otherwise IDLE exits with the message


<fixed>Traceback (most recent call last):

  File
"/Applications/MacPython-2.3/IDLE.app/Contents/Resources/__argvemulator_idle",
line 4, in ?

    execfile(os.path.join(os.path.split(__file__)[0], "idle"))

  File "/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idle",
line 12, in ?

    PyShell.main()

  File
"/Applications/MacPython-2.3/IDLE.app/Contents/Resources/idlelib/PyShell.py",
line 756, in main

    root = Tk(className="Idle")

  File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/Tkinter.py",
line 1572, in __init__

    raise RuntimeError, \

RuntimeError: tcl.h version (8.4) doesn't match libtcl.a version (8.4)

</fixed>

Does not matter if I use tcl/tk from CVS (which is 8.5) or tcl/tk from
sourceforge,

(which is 8.4).

===

Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;

Editor: Journal of Multivariate Analysis, Journal of Statistical
Software

US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554

phone (310)-825-9550;  fax (310)-206-5658;  email:
deleeuw@stat.ucla.edu

homepage: http://gifi.stat.ucla.edu


-------------------------------------------------------------------------------------------------

          No matter where you go, there you are. --- Buckaroo Banzai

                   http://gifi.stat.ucla.edu/sounds/nomatter.au                                  


-------------------------------------------------------------------------------------------------        
--Apple-Mail-2--541338527--