RK
unread,Jul 5, 2011, 3:19:24 PM7/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chm2pdf
I am getting the following error (traceback) when trying to convert a
book -
laptop:~/CHM$ chm2pdf --book Patho.chm
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 387, in convert_to_pdf
correct_file(re.sub('\\\\ ', ' ', page_filename),
htmlout_filename, html_list, objective_urls, options)
File "/usr/bin/chm2pdf", line 142, in correct_file
image_catcher.feed(page)
File "/usr/lib/python2.6/sgmllib.py", line 104, in feed
self.goahead(0)
File "/usr/lib/python2.6/sgmllib.py", line 174, in goahead
k = self.parse_declaration(i)
File "/usr/lib/python2.6/markupbase.py", line 98, in
parse_declaration
decltype, j = self._scan_name(j, i)
File "/usr/lib/python2.6/markupbase.py", line 388, in _scan_name
% rawdata[declstartpos:declstartpos+20])
File "/usr/lib/python2.6/sgmllib.py", line 111, in error
raise SGMLParseError(message)
sgmllib.SGMLParseError: expected name token at '<!
\x11\xb6\xb8\xd6\xe7EG\x90*\x99\x002y\x8f!=@\xea'
Any idea what can I do get it working? I am running Ubuntu 10.10, and
so far I can see I have all the dependencies in place.
Thanks,
RK.