[Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

Jack Jansen Jack.Jansen at cwi.nl
Tue Dec 21 23:23:05 CET 2004


The PythonIDE not starting problem is completely unrelated to your  
other problems. You've encountered a bug in the IDE (for which I'll add  
a FAQ entry shortly). If you've set your IDE scripts directory to  
something containing more than 200-something files the menu building  
code runs out of menu entries.

The fix is to first remove your IDE preferences  
(~/Library/Preferences/Python/PythonIDE preferences), and then not set  
your scripts directory to something that has too many files (such as  
your home directory).

On 20-dec-04, at 18:38, Jon Schull wrote:

> 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
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma  
Goldman



More information about the Pythonmac-SIG mailing list