I'm trying to create a new Leo-Editor outline file using leoBridge and I'm
stuck with this error:
$ python .temp.py
Traceback (most recent call last):
File ".temp.py", line 17, in <module>
ptrDay = ptrRoot.insertAsLastChild()
File "/home/ldi/bzr/LeoLatest/leo/core/leoNodes.py", line 1212, in
insertAsLastChild
n = p.numberOfChildren()
File "/home/ldi/bzr/LeoLatest/leo/core/leoNodes.py", line 488, in
numberOfChildren
return len(p.v.children)
AttributeError: 'NoneType' object has no attribute 'children'
Here is my program .temp.py:
pathLeo = '/home/ldi/tmp/debug/rfd1207.leo'
import sys
sys.path.append("/home/ldi/bzr/LeoLatest/")
import leo.core.leoBridge as leoBridge
bridge = leoBridge.controller(gui='nullGui',verbose=False)
cmdr = bridge.openLeoFile(pathLeo)
ptrRoot = cmdr.rootPosition()
ptrDay = ptrRoot.insertAsLastChild()
-------- end program ------------------
I seem to have an outline and it seems to have a root position, but this
root position does not have a "vnode".
Versions:
Leo Log Window
Leo 4.11 devel, build 5416, 2012-07-01 15:27:23
Python 2.7.2, qt version 4.7.4
linux2 --- This is openSUSE 12.1
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/leo-editor/-/kijBRud0h0kJ.
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.