![]() ![]() A File EditorĮvery programmer needs to be able to edit and save text files. You can simplify your workflow with Python IDLE, which will immediately start a Python shell when you open it. You can access it through the terminal or command line app on your machine. The Python shell is an excellent place to experiment with small code snippets. > OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something.Note: For a full guide to the standard Python REPL, check out The Python Standard REPL: Try Out Code and Ideas Quickly. Title: IDLE crashes when you paste something. > OS X IDLE 2.7 from 64-bit installer hangs when you paste something. Title: OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something. Ronaldoussoren, benjamin.peterson, ned.deily, 5ragar5 ![]() There is now a webpage that summarizes the somewhat confusing state of affairs with regard to Tcl/Tk support with Python on Mac OS X: Library/Frameworks/Tk.framework/Versions/8.5/Tk \īut this is definitely not recommended as you will likely run into other issues that have been fixed since the 2.7.1 release. change /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk \ Library/Frameworks/Tcl.framework/Versions/8.5/Tcl \ change /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl \ $ sudo cp -pE _tkinter.so _tkinter.so.BACKUP # just in case $ cd /Library/Frameworks/amework/Versions/2.7/ Instead of rebuilding, it *is* possible to modify the library paths in the _tkinter extension module using the OS X install_name_tool so that the released 2.7.1 Tkinter will link with an ActiveTcl 8.5.9: Until the next release of Python 2.7 (2.7.2), the best workaround without rebuilding remains to use the 32-bit-only installer for 2.7.1. Unfortunately, as released, the 64-bit/32-bit Python 2.7.1 for 10.6 links only to the Apple-supplied Tcl/Tk 8.5. Now that ActiveState has released a version of Tcl/Tk 8.5 (8.5.9.2) for Mac OS X that is also an Aqua Cocoa Tk (like the Apple-supplied Tk 8.5.7 in 10.6) and supports 64-bit, versions of Python linked with the new ActiveTcl 8.5.9 do not display the problem reported here as well as a number of other problems reported elsewhere. Next step: see if the Issue6075 patches help with the Apple 8.5 Tk and, if not, add stuff to force both IDLE.app and bin/idle and their subprocesses to run only in 32-bit mode: probably either some more lipo-ing and/or adding posix_spawns. For testing, it is possible to demonstrate 32-bit mode in a 64-/32- build with a properly built _tkinter.so by using the -n parameter, which causes IDLE to run with no subprocesses: Unfortunately, the obvious workaround for the 64-bit/32-bit variant - building with one of the working 32-bit versions - does not result in a working IDLE.app or bin/idle since IDLE and its subprocesses are all launched in 64-bit mode (where possible) on 10.6. It is not reproducible when using ActiveState Tcl/Tk 8.5.9, AS Tcl/Tk 8.4.19, or Apple Tcl/Tk 8.4 (none of which, of course, is available in 64-bit mode). More data points: using the 2.7.1 release source tarball, the problem is reproducible on 10.6 when dynamically linked to the Apple Tcl/Tk 8.5 and executing in either 64-bit or 32-bit mode. Sadly enough I have barely had time to do any open-source work at all the last couple of weeks, I should have some time before the end of the year. The patch in that issue needs work, IIRC I was pretty sure at the time that the patch was too large and changed more code that it should have. And whether it is an Apple Tk problem or not (which remains to be determined), there are workarounds that could be applied - like having a 32-bit-only IDLE built with Aqua Tk 8.4 as the 32-bit installers do. As it stands, IDLE was broken in the 2.7 64-bit OS X installer for 2.7 and, as it stands, is still broken. Regardless of the root cause, I really hate to see 2.7.1 go out with this unresolved. Ronald, which patch are you thinking of? Issue6075? There is a patch that improves AquaTk 8.5 support which I need to integrate/test. > Is this an Apple problem beyond our control (close?)? > Is this a duplicate of other issues (close?)? Is this an Apple problem beyond our control (close?)?Īuthor: Ronald Oussoren (ronaldoussoren) * Is this a duplicate of other issues (close?)? As a workaround, you can re-install 2.7rc1 using the 32-bit-only installer IDLE there does not exhibit these problems. This appears to be another variant of the IDLE, OS X 10.6, 64-bit, Apple-supplied Tk 8.5 problems. I'm using Python 2.7.1rcl with a Version 10.6.4 Mac OSX Whenever I paste anything into the IDLE shell, the program freezes, and then crashes. OS X IDLE 2.7 from 64-bit installer hangs when you paste something.ĥragar5, benjamin.peterson, ned.deily, ronaldoussorenĬreated on 05:41 by 5ragar5, last changed 14:57 by admin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |