You are not logged in.
Pages: 1
I've been trying to convert a chm document to pdf using chm2pdf, but continue to get this traceback error:
Traceback (most recent call last):
File "/usr/bin/chm2pdf", line 1111, in <module>
main(sys.argv)
File "/usr/bin/chm2pdf", line 1107, in main
convert_to_pdf(cfile, filename, outputfilename, options)
File "/usr/bin/chm2pdf", line 394, in convert_to_pdf
correct_file(page_filename, htmlout_filename, html_list, objective_urls, options)
File "/usr/bin/chm2pdf", line 140, in correct_file
image_catcher.feed(page)
File "/usr/lib/python2.7/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.7/sgmllib.py", line 174, in goahead
k = self.parse_declaration(i)
File "/usr/lib/python2.7/markupbase.py", line 98, in parse_declaration
decltype, j = self._scan_name(j, i)
File "/usr/lib/python2.7/markupbase.py", line 388, in _scan_name
% rawdata[declstartpos:declstartpos+20])
File "/usr/lib/python2.7/sgmllib.py", line 111, in error
raise SGMLParseError(message)
sgmllib.SGMLParseError: expected name token at '<!\xbd?\xd9a\xe9\xf0\xe3\x9e\xaf\x13*\xc4\xa3\xfe:\x99d\x9b'I then found a "Test" chm file that is supposedly simple to convert and got this traceback:
Traceback (most recent call last):
File "/usr/bin/chm2pdf", line 1111, in <module>
main(sys.argv)
File "/usr/bin/chm2pdf", line 1107, in main
convert_to_pdf(cfile, filename, outputfilename, options)
File "/usr/bin/chm2pdf", line 325, in convert_to_pdf
html_list=get_html_list(cfile)
File "/usr/bin/chm2pdf", line 104, 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' objectAm I missing a library or something else entirely?
Last edited by johan1391 (2012-04-10 07:20:39)
Offline
Pages: 1