You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run countershape over a doc-src tree and it will return the above error.
More Information
The code parses the page, but fails at the end of the page processing (whatever it is doing at the time.)
$ cshape doc-src/ /c/tmp/output/
Traceback (most recent call last):
File "./cshape", line 50, in
main()
File "./cshape", line 46, in main
c.main()
File "./cshape", line 34, in main
d.render(args[1])
File "d:\repos\src\countershape\countershape\doc.py", line 291, in render
out = self(i)
File "d:\repos\src\countershape\countershape\doc.py", line 296, in call
return list(model.BaseApplication.call(self, page))[0]
File "d:\repos\src\countershape\countershape\model.py", line 460, in call
for d in page():
File "d:\repos\src\countershape\countershape\model.py", line 299, in call
yield unicode(layout(self))
File "d:\repos\src\countershape\countershape\html.py", line 50, in str
return "".join([unicode(i) for i in self.children])
File "d:\repos\src\countershape\countershape\html.py", line 143, in str
"".join([unicode(i) for i in self.children]),
File "d:\repos\src\countershape\countershape\html.py", line 143, in str
"".join([unicode(i) for i in self.children]),
File "d:\repos\src\countershape\countershape\template.py", line 129, in **str_
_
s = self.block.render(**kwargs)
File "c:\Python26\lib\site-packages\cubictemp.py", line 154, in render
r = "".join([i.render(n) for i in self])
File "c:\Python26\lib\site-packages\cubictemp.py", line 139, in render
return str(ret)
File "d:\repos\src\countershape\countershape\widgets.py", line 113, in __str
self._mkUL(nodes, exclude, self.depth),
File "d:\repos\src\countershape\countershape\widgets.py", line 75, in _mkUL
for p in n:
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered:
I don't understand the full code, but found the following work-around for Windows users.
Instead of passing a path "/filename" to countershape.widgets.SiblingPageIndex, using the windows notation for passing file paths in a string (i.e. "\filename"") <-- that's 2 x backslashes.)
Run countershape over a doc-src tree and it will return the above error.
More Information
The code parses the page, but fails at the end of the page processing (whatever it is doing at the time.)
$ cshape doc-src/ /c/tmp/output/
Traceback (most recent call last):
File "./cshape", line 50, in
main()
File "./cshape", line 46, in main
c.main()
File "./cshape", line 34, in main
d.render(args[1])
File "d:\repos\src\countershape\countershape\doc.py", line 291, in render
out = self(i)
File "d:\repos\src\countershape\countershape\doc.py", line 296, in call
return list(model.BaseApplication.call(self, page))[0]
File "d:\repos\src\countershape\countershape\model.py", line 460, in call
for d in page():
File "d:\repos\src\countershape\countershape\model.py", line 299, in call
yield unicode(layout(self))
File "d:\repos\src\countershape\countershape\html.py", line 50, in str
return "".join([unicode(i) for i in self.children])
File "d:\repos\src\countershape\countershape\html.py", line 143, in str
"".join([unicode(i) for i in self.children]),
File "d:\repos\src\countershape\countershape\html.py", line 143, in str
"".join([unicode(i) for i in self.children]),
File "d:\repos\src\countershape\countershape\template.py", line 129, in **str_
_
s = self.block.render(**kwargs)
File "c:\Python26\lib\site-packages\cubictemp.py", line 154, in render
r = "".join([i.render(n) for i in self])
File "c:\Python26\lib\site-packages\cubictemp.py", line 139, in render
return str(ret)
File "d:\repos\src\countershape\countershape\widgets.py", line 113, in __str
File "d:\repos\src\countershape\countershape\widgets.py", line 75, in _mkUL
for p in n:
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered: