[Pythonmac-SIG] Mac OS X 10.3 and Tkinter

Larry Meyn Larry.A.Meyn at nasa.gov
Sat Sep 11 18:01:09 CEST 2004


Damien,

You might have more than one Python installed on your machine.  This is 
a subject that also deserves a FAQ entry, but there have been several 
mailing list postings on the subject.  As a start, try typing "which 
python" on the the Terminal command line and see if the result is 
"/usr/bin/python", if it isn't you may not be running Jack's MacPython 
from the command line.  I don't remember the best way to solve this 
problem, but I believe that you can find helpful information in the 
Pythonmac-SIG postings from the last couple of months.

Larry

On Sep 10, 2004, at 11:51 PM, Damien JACOMY wrote:

> Larry,
>
>  Thanks for this piece of in formation. I haven’t seen this page yet.
>  But the problem is greater than I think.
>  I can’t use the module Tkinter without IDE,
>  because when I use a windowing toolbox outside the IDE, I have 
> another error : ImportError: No module named _tkinter,
>  although the module _tkinter was installed by package manager.
>
>  Thanks
>
>  Damien,
>
>
>
>
>  Damien,
>
>  Your answer can be found in the MacPython FAQ located at 
>  http://www.pythonmac.org/wiki/FAQ  
>  I've copied the relevant FAQ below.  Good luck!
>
>  Larry
>
>  3.7 The IDE crashes when I run a Tkinter script (PyObjC script, 
> wxPython script)
>
> The IDE uses the old Carbon GUI toolbox for its windowing. Trying to 
> run a script that brings in its own GUI toolbox (such as Tck/Tk, 
> Cocoa, wxWindows or anything else) will cause great confusion: redraws 
> and events for the toolboxes will be sent to the wrong place, etc. At 
> best things will not work as expected, at worst the IDE will crash.
>
>   For the time being you should run almost all scripts that use a 
> windowing toolbox outside the IDE, either with the pythonw program 
> from a Terminal window or with PythonLauncher from the Finder.
>   
>  On Sep 10, 2004, at 3:10 PM, Damien JACOMY wrote:
>
>
>  Hi folks,
>
>  the IDE crashes every time when running this test :
>  import _tkinter  => ok
>  import Tkinter  => ok
>  Tkinter._test()  => the widget open and then CRASH!!!!
>
>   the stack trace in the Console window is :
>  Fatal Python error: PyEval_SaveThread: NULL tstate
>
>  Thanks for you help.
>
>  --  
>  Damien JACOMY
>  <djacomy at yahoo.fr>
>
>
>  _______________________________________________
>  Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>  http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>
>
> Larry Meyn
>  Aerospace Operations Modeling Office
>
>  M/S 210-10                       
>  NASA Ames Research Center        
>  Moffett Field, CA 94035-1000     
>                                  
>  E-mail: Larry.A.Meyn at nasa.gov
>  Phone:  (650) 604-5038
>  Fax:    (650) 604-0222
>  E-Fax:  (425) 944-5526 sent via e-mail  
>
>
>
>   _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 5289 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040911/e3ca1463/attachment.bin


More information about the Pythonmac-SIG mailing list