Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work

Ned Deily nad at acm.org
Fri Jun 24 17:01:50 EDT 2011


In article 
<09cae8bf-4b1f-40ea-af36-4ba130c41949 at m18g2000vbl.googlegroups.com>,
 mando <mandoluca at gmail.com> wrote:

> I took MacPython 2.6 from here:
> 
> http://www.python.org/ftp/python/2.6.6/python-2.6.6-macosx10.3.dmg
> 
> 
> Also I downloaded Tcl/Tk from here 
> http://www.kyngchaos.com/software/frameworks
> to using the gis software Qgis....
> 
> May be here the issue?

I can't reproduce the problem and I really don't see how installing that 
Tcl/Tk framework could cause the problem by itself.  The version of Tcl 
and Tk to dynamically load is added to the executable at link time when 
the installer is being built.  It should look something like this:

$ cd /Library/Frameworks/Python.framework/Versions/2.6
$ cd ./lib/python2.6/lib-dynload/
$ otool -L _tkinter.so 
_tkinter.so (architecture ppc):
   /Library/Frameworks/Tcl.framework/Versions/8.4/Tcl (compatibility 
version 8.4.0, current version 8.4.19)
   /Library/Frameworks/Tk.framework/Versions/8.4/Tk (compatibility 
version 8.4.0, current version 8.4.19)
   /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 
47.1.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.3.10)
_tkinter.so (architecture i386):
   /Library/Frameworks/Tcl.framework/Versions/8.4/Tcl (compatibility 
version 8.4.0, current version 8.4.19)
   /Library/Frameworks/Tk.framework/Versions/8.4/Tk (compatibility 
version 8.4.0, current version 8.4.19)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.3.10)

Note the absolute path to the framework.  If that version of the 
framework does not exist at that location, the dynamic loader falls back 
to the OS X standard location /System/Library/Frameworks ...

If you've only installed that one extra Tcl/Tk version, things should 
look something like this:

$ ls -l /Library/Frameworks/Tcl.framework/Versions/
total 8
drwxr-xr-x  5 root  admin  272 Jul 27  2010 8.5/
lrwxr-xr-x  1 root  admin    3 Jun 24 13:31 Current@ -> 8.5
$ ls -l /Library/Frameworks/Tk.framework/Versions/
total 8
drwxr-xr-x  5 root         admin  272 Jul 27  2010 8.5/
lrwxr-xr-x  1 sysadminold  wheel    3 Jun 24 13:31 Current@ -> 8.5
$  ls -l /System/Library/Frameworks/Tk.framework/Versions/
total 8
drwxr-xr-x  5 root  wheel  340 Mar 17 18:27 8.4/
drwxr-xr-x  5 root  wheel  340 Mar 17 18:27 8.5/
lrwxr-xr-x  1 root  wheel    3 Nov  7  2010 Current@ -> 8.5
$ ls -l /System/Library/Frameworks/Tcl.framework/Versions/
total 8
drwxr-xr-x  5 root  wheel  374 Mar 17 18:27 8.4/
drwxr-xr-x  5 root  wheel  374 Mar 17 18:27 8.5/
lrwxr-xr-x  1 root  wheel    3 Nov  7  2010 Current@ -> 8.5

If not, something's wrong.  It's especially odd that you would see a 
problem with IDLE.app since it is not influenced by shell initialization 
steps.  Do you have something set in ~/.MacOSX/environment.plist ?  
Also, try launching that idle from a shell:

$ /usr/local/bin/idle2.6

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list