Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8409

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'framework.': 0.07; 'skip:/ 40': 0.07; 'dynamically': 0.09; 'issue?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'url:software': 0.13; 'wrote:': 0.15; '272': 0.16; 'from:addr:acm.org': 0.16; 'received:198.144': 0.16; 'shell:': 0.16; 'skip:/ 50': 0.16; 'subject:Mac': 0.16; 'tcl/tk': 0.16; 'url:dmg': 0.16; 'url:ftp': 0.16; 'url:python-2': 0.16; 'this:': 0.16; 'admin': 0.18; 'downloaded': 0.21; 'load': 0.26; 'nov': 0.28; 'framework': 0.28; 'version,': 0.28; 'gis': 0.29; 'idle': 0.29; 'installing': 0.29; 'odd': 0.29; 'shell': 0.29; 'problem': 0.29; 'influenced': 0.30; 'installer': 0.30; 'version': 0.30; 'received:198': 0.32; 'does': 0.33; 'header:User- Agent:1': 0.34; 'header:X-Complaints-To:1': 0.34; 'to:addr:python- list': 0.34; '...': 0.34; "can't": 0.34; 'things': 0.35; '2.6': 0.35; 'executable': 0.35; 'location,': 0.35; 'installed': 0.35; 'charset:us-ascii': 0.36; 'url:python': 0.36; 'using': 0.38; 'could': 0.38; 'received:org': 0.38; 'not,': 0.38; 'url:org': 0.38; 'something': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'header:Mime-Version:1': 0.39; 'itself.': 0.39; 'to:addr:python.org': 0.39; 'absolute': 0.40; 'would': 0.40; 'total': 0.61; 'back': 0.63; 'took': 0.63; 'link': 0.63; 'here:': 0.64; 'here': 0.66; 'url:3': 0.67; 'jun': 0.67; 'cause': 0.69; 'article': 0.76; '13:31': 0.84; '18:27': 0.84; 'wheel': 0.84; 'steps.': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work
Date Fri, 24 Jun 2011 14:01:50 -0700
References <198e388e-57ce-42e4-acff-48bed83563ee@m22g2000yqh.googlegroups.com> <BANLkTik7T90cE1eaMq-cYAyjZ-Knv0pUtg@mail.gmail.com> <1308852410.2257.1466520017@webmail.messagingengine.com> <mailman.341.1308862358.1164.python-list@python.org> <09cae8bf-4b1f-40ea-af36-4ba130c41949@m18g2000vbl.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host baybryj.net
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.387.1308949334.1164.python-list@python.org> (permalink)
Lines 77
NNTP-Posting-Host 82.94.164.166
X-Trace 1308949334 news.xs4all.nl 183 [::ffff:82.94.164.166]:59334
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8409

Show key headers only | View raw


In article 
<09cae8bf-4b1f-40ea-af36-4ba130c41949@m18g2000vbl.googlegroups.com>,
 mando <mandoluca@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@acm.org

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work mando <mandoluca@gmail.com> - 2011-06-23 10:38 -0700
  Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work Ned Deily <nad@acm.org> - 2011-06-23 13:52 -0700
    Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work mando <mandoluca@gmail.com> - 2011-06-24 00:33 -0700
      Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work Ned Deily <nad@acm.org> - 2011-06-24 14:01 -0700
        Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work mando <mandoluca@gmail.com> - 2011-06-28 00:53 -0700
          Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work Ned Deily <nad@acm.org> - 2011-06-28 01:49 -0700
        Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work mando <mandoluca@gmail.com> - 2011-06-28 06:27 -0700

csiph-web