many successes one failure (the macpython2.3  IDE no longer works)

Jeff wrote:

Jon: You're supposed to source /sw/bin/init.sh to set up the fink environment. If you don't do that, a lot of things won't work.

http://fink.sourceforge.net/doc/users-guide/install.php? phpLang=en#setup


that sounds like me. A lot of things don't work. ;->
So I ran /sw/bin/pathsetup.sh as per http://fink.sourceforge.net/doc/users-guide/install.php? phpLang=en#setup


This gave me an encouraging message, and now (assuming I startx) idle works.

On Dec 20, 2004, at 11:42 AM, Ronald Oussoren wrote:
Which python is first on your path? IIRC there is a feature in darwin that wreaks havoc with the setup code in python that finds the correct prefix (and library). This ends up always picking the prefix for the first python on the path. Darwinports contains a patch for that. Using "#!/usr/bin/env /sw/bin/python" should also work.

So at this point, fink python is first on my path
208-186-56-189:~/freemind jis$ which python
/sw/bin/python
208-186-56-189:~/freemind jis$ which idle
/sw/bin/idle


from the command line I can now run /sw/bin/python, /usr/bin/python, and /usr/local/bin/python successfully
"idle" and "python" work too and support vpython.


Let's take inventory
208-186-56-189:~ jis$ cat showSysPath.py
import sys
print sys.path

208-186-56-189:~ jis$ python showSysPath.py
['/Users/jis', '/sw/lib/python23.zip', '/sw/lib/python2.3', '/sw/lib/python2.3/plat-darwin', '/sw/lib/python2.3/plat-mac', '/sw/lib/python2.3/plat-mac/lib-scriptpackages', '/sw/lib/python2.3/lib-tk', '/sw/lib/python2.3/lib-dynload', '/sw/lib/python2.3/site-packages', '/sw/lib/python2.3/site-packages/Numeric', '/sw/lib/python2.3/site-packages/PyObjC', '/sw/lib/python2.3/site-packages/gtk-2.0']

208-186-56-189:~ jis$ /usr/bin/python showSysPath.py
['/Users/jis', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python23.zip', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/PyObjC']

208-186-56-189:~ jis$ /usr/local/bin/python showSysPath.py
['/Users/jis', '/usr/local/lib/python23.zip', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-darwin', '/usr/local/lib/python2.3/plat-mac', '/usr/local/lib/python2.3/plat-mac/lib-scriptpackages', '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-packages']

Now if I double click on "/Applications/MacPython-2.3/PythonIDE.app" the startup screen appears briefly and disappears. The console gets
===== Mon Dec 20 2004 ===== 12:31:36 US/Eastern =====
Traceback (most recent call last):
File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDE.py", line 59, in ?
_PythonIDEMain.PythonIDE()
File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDEMain.py", line 41, in __init__
Wapplication.Application.__init__(self, 'Pide')
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 28, in __init__
FrameWork.Application.__init__(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/FrameWork.py", line 115, in __init__
self.makemenubar()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 275, in makemenubar
self.makeusermenus()
File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDEMain.py", line 159, in makeusermenus
self.makescriptsmenu()
File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDEMain.py", line 261, in makescriptsmenu
self.scriptswalk(fsr.as_pathname(), self.scriptsmenu)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 309, in scriptswalk
self.scriptswalk(path, submenu, done)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 309, in scriptswalk
self.scriptswalk(path, submenu, done)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 308, in scriptswalk
submenu = FrameWork.SubMenu(menu, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/FrameWork.py", line 708, in SubMenu
return menu.addsubmenu(label, title)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/FrameWork.py", line 595, in addsubmenu
sub = Menu(self.bar, title, -1)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/FrameWork.py", line 545, in __init__
self.id, self.menu = self.bar.addmenu(title, after, id)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/FrameWork.py", line 479, in addmenu
id = self.getnextid()
File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/ IDE/Wapplication.py", line 433, in getnextid
id = self.possibleIDs[0]
IndexError: list index out of range



Curiously, if I doubleclick on the Idle in the same directory ("/Applications/MacPython-2.3/IDLE.app") I get an Xish looking idle.
Python 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "copyright", "credits" or "license()" for more information.

    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************

IDLE 1.0
>>> import sys
>>> print sys.path
['/', '/Applications/MacPython-2.3/IDLE.app/Contents/Resources', '/Applications/MacPython-2.3/IDLE.app/Contents/Resources', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python23.zip', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/PyObjC']
>>>

So, if I have this right, I have 3 pythons, and some further variations. 8-o


Should I try reinstalling the macpython addons?

(I really appreciate everyone's help on this !)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jon Schull, Ph.D.
Associate Professor
Information Technology
Rochester Institute of Technology
102 Lomb Memorial Drive
Rochester, New York 14623
[EMAIL PROTECTED] 585-738-6696

_______________________________________________
Pythonmac-SIG maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to