RaptDept / chm2pdf

Automatically exported from code.google.com/p/chm2pdf
GNU General Public License v2.0
0 stars 0 forks source link

SGMLParseError #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Installed dependences on Debian
2. Run chm2pdf --book MyFile.chm MyFile.pdf

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/usr/bin/chm2pdf", line 887, in ?
    main(sys.argv)
  File "/usr/bin/chm2pdf", line 883, in main
    convert_to_pdf(cfile, filename, outputfilename, options)
  File "/usr/bin/chm2pdf", line 242, in convert_to_pdf
    correct_file(page_filename, htmlout_filename, html_list, objective_urls)
  File "/usr/bin/chm2pdf", line 118, in correct_file
    image_catcher.feed(page)
  File "/usr/lib/python2.4/sgmllib.py", line 95, in feed
    self.goahead(0)
  File "/usr/lib/python2.4/sgmllib.py", line 165, in goahead
    k = self.parse_declaration(i)
  File "/usr/lib/python2.4/markupbase.py", line 95, in parse_declaration
    decltype, j = self._scan_name(j, i)
  File "/usr/lib/python2.4/markupbase.py", line 384, in _scan_name
    self.error("expected name token at %r"
  File "/usr/lib/python2.4/sgmllib.py", line 102, in error
    raise SGMLParseError(message)
sgmllib.SGMLParseError: expected name token at
'<!\xaf\xb6\x8f\x83|(F?\xe1\x1c\xd2\xbf\xf0\x15?\xc2\x9a\xde'

What version of the product are you using? On what operating system?
chm2pdf-0.9, GNU/Linux Debian Etch

Please provide any additional information below.
None

Regards

Original issue reported on code.google.com by eximius...@gmail.com on 27 Apr 2008 at 8:28

GoogleCodeExporter commented 8 years ago
Looks like something is wrong inside your CHM book. The SGML parser of Python is
probably a bit too much strict on that.
Don't really know where to start. Could you send me a copy of the offending CHM 
file?

Original comment by devicera...@gmail.com on 5 May 2008 at 9:53

GoogleCodeExporter commented 8 years ago
Hi Everzone, I just encountered the same error when trying to convert a chm 
book...
I would like to send you the book, but it is pretty big, more than 60 Mo!

Where can I drop it?

Regards
-- 
Eric

Original comment by keller.eric on 29 Jul 2008 at 11:13

GoogleCodeExporter commented 8 years ago
We cannot do anything about CHM files that throw errors with Python's SGML 
Parser. I
will change the status to "WontFix".

Original comment by chriskar...@googlemail.com on 25 Nov 2008 at 7:08