IDLE doesn't work on my Mac :-(

greg at cosc.canterbury.ac.nz greg at cosc.canterbury.ac.nz
Sat Oct 2 18:46:58 EDT 1999


Is IDLE supposed to work on a Mac?

I recently installed the Mac binary distribution of
Python 1.5.2 under System 8.0, and experienced the following 
problems:

1) At first I could not import Tkinter. I had to manually
add $(PYTHON):Lib:lib-tk to the library search path using
EditPythonPrefs. Shouldn't this should be done automatically
by the installer?

2) After that, "import Tkinter" works and is functional
at a basic level, but IDLE still will not run:

Traceback (innermost last):
  File "Macintosh HD:Programming:Python 1.5.2c1:Tools:idle:idle.py",
line 3, in ?
    PyShell.main()
  File "Macintosh HD:Programming:Python 1.5.2c1:Tools:idle:PyShell.py",
line 612, in main
    fixwordbreaks(root)
  File "Macintosh HD:Programming:Python
1.5.2c1:Tools:idle:EditorWindow.py", line 606, in fixwordbreaks
    tk.call('tcl_wordBreakAfter', 'a b', 0) # make sure word.tcl is loaded
TclError: invalid command name "tcl_wordBreakAfter"

I dug around in the innards and found that _tkinter.ppc.slb
contains a bunch of TEXT resources with tcl code in them,
among which there is the source for tcl_wordBreakAfter. But
it is not being loaded.

I tried putting in things like tk.call('source', 'word.tcl')
but only got "not found" errors.

>From the comment on that line, it sounds as though the function
is supposed to get autoloaded somehow, but that is not happening.

Anyone have any idea what's wrong and how to fix it?

Thanks, 
Greg Ewing
greg at cosc.canterbury.ac.nz




More information about the Python-list mailing list