I'm getting failed @auto imports with this traceback:

reading: /home/ktenney/work/salt.leo
reading: @auto pkg.py
exception executing script
Traceback (most recent call last):
  File "/usr/fetching/leo-editor/leo/core/leoCommands.py", line 2180,
in executeScript
    execfile(scriptFile,d)
  File "/usr/fetching/leo-editor/leo/test/scriptFile.py", line 7, in <module>
    leotools.load_session(c, UNLs)
  File "/home/ktenney/work/lib/leotools.py", line 71, in load_session
    ok, frame = g.openWithFileName(fname, c)
  File "/usr/fetching/leo-editor/leo/core/leoGlobals.py", line 2271,
in openWithFileName
    ok = g.handleOpenHooks(c,old_c,gui,fn,f,readAtFileNodesFlag)
  File "/usr/fetching/leo-editor/leo/core/leoGlobals.py", line 2329,
in handleOpenHooks
    readAtFileNodesFlag=readAtFileNodesFlag) # closes file.
  File "/usr/fetching/leo-editor/leo/core/leoFileCommands.py", line 888, in open
    silent=silent)
  File "/usr/fetching/leo-editor/leo/core/leoFileCommands.py", line
741, in getLeoFile
    c.atFileCommands.readAll(c.rootVnode(),partialFlag=False)
  File "/usr/fetching/leo-editor/leo/core/leoAtFile.py", line 767, in readAll
    at.readOneAtAutoNode (fileName,p)
  File "/usr/fetching/leo-editor/leo/core/leoAtFile.py", line 843, in
readOneAtAutoNode
    ic.createOutline(fileName,parent=p.copy(),atAuto=True)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 888, in
createOutline
    func(s,p,atAuto=atAuto)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 1664, in
scanPythonText
    scanner.run(s,parent)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 3282, in run
    ok = self.errors == 0 and self.check(s,parent)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 1827, in check
    return self.checkTrialWrite()
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 1881, in
checkTrialWrite
    bad_i1,bad_i2,ok = self.scanAndCompare(s1,s2)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 2074, in
scanAndCompare
    n1,n2,ok = self.compareTokens(tokens1,tokens2)
  File "/usr/fetching/leo-editor/leo/core/leoImport.py", line 2094, in
compareTokens
    else:      kind1,val1 = 'eof','',n1
ValueError: too many values to unpack
--------------------
  line 2093:             if i < n1: kind1,val1,tok_n1 = tokens1[i]
* line 2094:             else:      kind1,val1 = 'eof','',n1
  line 2095:             if i < n2: kind2,val2,tok_n2 = tokens2[i]
  line 2096:             else:      kind2,val2,tok_n2 = 'eof','',n2

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to