I fixed it by renaming the file so that it doesn't try to load at
startup. Then I was able to open it via the open command. Then I
removed two nodes that were under the @chapters outline. I saved it,
then renamed the file back to workbook.leo and the errors are gone.

It seems I made something inconsistent when I created a chapter. I'm
not sure what exactly.

Request: Where can I find more information about @chapters? It seems
odd that it is shown as a default node in every outline yet such an
'important' feature does not have much documentation. I suppose it is
just a handy way to save various 'hoisted' views so that you can
easily find it in the drop down menu? I'm not clear on how it works.
When I try to create a chapter, my cursor goes to the minibuffer, but
I'm not told what to do. Whatever I type, I get errors when I hit
return.

Error: 1
<class '_tkinter.TclError'> Exception in Tk callback
  Function: <function bindCallback at 0xad3717c> (type: <type
'function'>)
  Args: (<Tkinter.Event instance at 0xa38ce0c>,)
  Event type: KeyPress (type num: 2)
Traceback (innermost last):
  File "/usr/lib/python2.6/dist-packages/Pmw/Pmw_1_3/lib/PmwBase.py",
line 1747, in __call__
    return apply(self.func, args)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoCommands.py", line 6190,
in bindCallback
    val = func(event)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoKeys.py", line 2408, in
masterBindKeyCallback
    return k.masterKeyHandler(event,stroke=stroke)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoKeys.py", line 3340, in
masterKeyHandler
    return k.getArg(event,stroke=stroke)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoKeys.py", line 3129, in
getArg
    if handler: handler(event)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoChapters.py", line 228,
in createChapter
    undoType='Create Chapter')
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoChapters.py", line 256,
in createChapterByName
    cc.chaptersDict[name] = chapter
(c=c,chapterController=cc,name=name,root=root)
  File "/home/paul/bin/Leo-4-6-b1/leo/core/leoChapters.py", line 873,
in __init__
    cc.tt.createTab(name)
  File "/home/paul/bin/Leo-4-6-b1/leo/plugins/tkGui.py", line 8922, in
createTab
    tt.setNames()
  File "/home/paul/bin/Leo-4-6-b1/leo/plugins/tkGui.py", line 8962, in
setNames
    tt.chapterMenu.setitems(names)
  File "/usr/lib/python2.6/dist-packages/Pmw/Pmw_1_3/lib/
PmwOptionMenu.py", line 67, in setitems
    self._menu.delete(0, 'end')
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
    self.deletecommand(c)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in
deletecommand
    self.tk.deletecommand(name)
<class '_tkinter.TclError'>: can't delete Tcl command

================================================
  Event contents:
    char:

    delta: 36
    height: ??
    keycode: 36
    keysym: Return
    keysym_num: 65293
    num: ??
    send_event: False
    serial: 13625
    state: 0
    time: 9217357
    type: 2
    widget: .181594892.181594444.185949420.minibuffer
    width: ??
    x: 435
    x_root: 512
    y: -566
    y_root: 201


I'm thinking that a chapter should be created from the selected node,
but that doesn't seem to happen.

Thanks,

Paul

On Jun 10, 8:23 pm, "unst...@gmail.com" <unst...@gmail.com> wrote:
> Hi, after using Leo for a few days on my ubuntu linux box, I get the
> following error which kills the editor:
>
> p...@dell-desktop:~$ leo&
> [1] 6537
> p...@dell-desktop:~$ reading settings in /home/paul/bin/Leo-4-6-b1/leo/
> config/leoSettings.leo
> /home/paul/bin/Leo-4-6-b1/leo/external/pickleshare.py:43:
> DeprecationWarning: the sets module is deprecated
>   from sets import Set as set
> Using menus from leoSettings.leo
> reading settings in /home/paul/.leo/myLeoSettings.leo
> Using menus from myLeoSettings.leo
> reading /home/paul/.leo/.leoRecentFiles.txt
> @enabled-plugins found in myLeoSettings.leo
> loaded plugin: tkGui
> opening default_leo_file: /home/paul/.leo/workbook.leo
> Traceback (most recent call last):
>   File "/home/paul/bin/Leo-4-6-b1/launchLeo.py", line 8, in <module>
>     leo.core.runLeo.run()
>   File "/home/paul/bin/Leo-4-6-b1/leo/core/runLeo.py", line 110, in
> run
>     c,frame = createFrame(fileName,relativeFileName,script)
>   File "/home/paul/bin/Leo-4-6-b1/leo/core/runLeo.py", line 158, in
> createFrame
>     ok, frame = g.openWithFileName(relativeFileName or fileName,None)
>   File "/home/paul/bin/Leo-4-6-b1/leo/core/leoGlobals.py", line 2292,
> in openWithFileName
>     c.chapterController.finishCreate()
>   File "/home/paul/bin/Leo-4-6-b1/leo/core/leoChapters.py", line 64,
> in finishCreate
>     cc.chaptersDict[tabName] = chapter
> (c=c,chapterController=cc,name=tabName,root=p)
>   File "/home/paul/bin/Leo-4-6-b1/leo/core/leoChapters.py", line 873,
> in __init__
>     cc.tt.createTab(name)
>   File "/home/paul/bin/Leo-4-6-b1/leo/plugins/tkGui.py", line 8922, in
> createTab
>     tt.setNames()
>   File "/home/paul/bin/Leo-4-6-b1/leo/plugins/tkGui.py", line 8962, in
> setNames
>     tt.chapterMenu.setitems(names)
>   File "/usr/lib/python2.6/dist-packages/Pmw/Pmw_1_3/lib/
> PmwOptionMenu.py", line 67, in setitems
>     self._menu.delete(0, 'end')
>   File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 2678, in delete
>     self.deletecommand(c)
>   File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 361, in
> deletecommand
>     self.tk.deletecommand(name)
> _tkinter.TclError: can't delete Tcl command
>
> Can anyone suggest how to fix this?
>
> Thanks,
>
> Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to