I can replicate this same error using the Ubuntu 15.04 package version 0.9.1-1.1ubuntu5. chm2pdf crashes on every possible invocation when I try to convert the CHM of _Infinite in all directions, Freeman Dyson 1988 ( https://www.dropbox.com/s/9iwq6kiw6gie0ts/1988-dyson-infiniteinalldirections.chm ), despite it opening and reading fine in FBreader (but not Calibre). Example:
$ chm2pdf --webpage 1988-dyson-infiniteinalldirections.chm foo.pdf GetTopicsTree: file size = 0 Traceback (most recent call last): File "/usr/bin/chm2pdf", line 1108, in <module> main(sys.argv) File "/usr/bin/chm2pdf", line 1102, in main convert_to_pdf(cfile, filename, outputfilename, options) File "/usr/bin/chm2pdf", line 317, in convert_to_pdf html_list=get_html_list(cfile) File "/usr/bin/chm2pdf", line 106, in get_html_list lister.feed(topicstree) File "/usr/lib/python2.7/sgmllib.py", line 103, in feed self.rawdata = self.rawdata + data TypeError: cannot concatenate 'str' and 'NoneType' objects $ chm2pdf --continuous 1988-dyson-infiniteinalldirections.chm foo.pdf GetTopicsTree: file size = 0 Traceback (most recent call last): File "/usr/bin/chm2pdf", line 1108, in <module> main(sys.argv) File "/usr/bin/chm2pdf", line 1102, in main convert_to_pdf(cfile, filename, outputfilename, options) File "/usr/bin/chm2pdf", line 317, in convert_to_pdf html_list=get_html_list(cfile) File "/usr/bin/chm2pdf", line 106, in get_html_list lister.feed(topicstree) File "/usr/lib/python2.7/sgmllib.py", line 103, in feed self.rawdata = self.rawdata + data TypeError: cannot concatenate 'str' and 'NoneType' objects $ chm2pdf --book 1988-dyson-infiniteinalldirections.chm foo.pdf GetTopicsTree: file size = 0 Traceback (most recent call last): File "/usr/bin/chm2pdf", line 1108, in <module> main(sys.argv) File "/usr/bin/chm2pdf", line 1102, in main convert_to_pdf(cfile, filename, outputfilename, options) File "/usr/bin/chm2pdf", line 317, in convert_to_pdf html_list=get_html_list(cfile) File "/usr/bin/chm2pdf", line 106, in get_html_list lister.feed(topicstree) File "/usr/lib/python2.7/sgmllib.py", line 103, in feed self.rawdata = self.rawdata + data TypeError: cannot concatenate 'str' and 'NoneType' objects -- gwern http://www.gwern.net