This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "SetFrontProcess failed,-606" error for Tkinter under OS X
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: brett.cannon, jackjansen
Priority: normal Keywords:

Created on 2003-08-16 22:53 by brett.cannon, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (4)
msg17815 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-08-16 22:53
Launching IDLE with the newest Aqua Tcl/Tk (8.4.4 with 
batteries included) leads to the error message 
"SetFrontProcess failed,-606" in the terminal window when I 
try to click on the IDLE window.

Is this a Tcl/Tk issue or a Tkinter problem?  I have tried to 
wipe as much of Tcl/Tk from my system and re-install and it 
still comes up (I could be having residual issues from my 
previous 8.3.3 which also had the same error).
msg17816 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-08-18 08:34
Logged In: YES 
user_id=45365

Brett,
I need a few more details. Did you use the existing IDLE from 2.3 
installed via PackMan, or a privately-built one? Or did you run 
from the command line? If so, you did remember to use 
"pythonw", not "python"?

If you can repeat this problem using pythonw from the command 
line I would like a transcript, please.
msg17817 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-08-18 20:33
Logged In: YES 
user_id=357491

This is a Darwin build built from CVS source (--with-pydebug --
prefix=$HOME/cvs_code --enable-ipv6 --enable-unicode=ucs4).  
There is no pythonw to run (I thought that was a Windows-only 
thing?) and I have never used (nor know how to use) PackMan.

I executed from the command-line by passing the script "idle" in 
my bin directory to my installed copy of CVS Python.

If this turns out to be because of the Unicode switch again I am 
going to go nuts.  =)
msg17818 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-08-19 10:08
Logged In: YES 
user_id=45365

Brett,
this is a known issue. On MacOSX you can only run GUI programs 
if they are embedded in a ".app" bundle. If you do a framework 
build of Python (see instructions in Mac/OSX/README) then in 
addition to the "python" executable you will also get "pythonw" 
which runs your script in such a .app bundle.

With a normal unix build this is conceivably doable, but you are on 
your own.

An alternative (but I wouldn't recommend it) is to use X11-Tk: as 
this isn't an Aqua program it doesn't suffer from the .app problem.
History
Date User Action Args
2022-04-10 16:10:40adminsetgithub: 39077
2003-08-16 22:53:27brett.cannoncreate