Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 39617

Summary: Python 2.3.3 seems to break sgmltools
Product: Gentoo Linux Reporter: Phil Thompson <phil>
Component: [OLD] DevelopmentAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Phil Thompson 2004-01-27 15:26:48 UTC
The new Python 2.3.3 seems to break the current version of sgmltools when creating HTML from DocBook. I've only just installed Gentoo, but I think the previous Python 2.2.x was Ok on the few times I tried it.

Reproducible: Always
Steps to Reproduce:
1.sgmltools -j '-V %generate-article-toc%' file.sgml
2.
3.
Actual Results:  
The Python trace is... 
 
Traceback (most recent call last): 
  File "/usr/bin/sgmltools", line 93, in ? 
    tool.processFile(curfile) 
  File "/usr/share/sgml/misc/sgmltools/python/SGMLtools.py", line 230, in 
processFile 
    dssslfile = utils.findStylesheet(stylesheet, self._aliases) 
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 307, in 
findStylesheet 
    return findStylesheet(name, aliases) 
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 317, in 
findStylesheet 
    raise IOError, "Couldn't resolve pubid [%s]" % id 
IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet 
for HTML//EN"]
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2004-01-28 01:33:03 UTC
firstly try remerging the dsssl-stylesheets, your catalogs might not be correct. If that doesnt fix it, yep, it could be python 2.3
Comment 2 Phil Thompson 2004-01-28 11:07:23 UTC
Remerging the dsssl stylesheets made no difference.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2004-01-31 02:24:44 UTC
See bug #32243 and remove xhtml1 (emerge -C xhtml1) if you have it installed.
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2004-01-31 20:48:33 UTC
No problems here with python-2.3.3
Comment 5 Phil Thompson 2004-02-01 09:40:01 UTC
I didn't have xhtml1 installed.

I added double-quotes to /etc/sgml/sgml-lite.cat as suggested in bug #32243 and it solved the problem.

Any reason why sgml-tools hasn't been fixed already?
Comment 6 Mike Gardiner (RETIRED) gentoo-dev 2004-02-01 15:40:29 UTC
Because we couldn't actually track down how they got lost in the first place, they're there for me. Also it didn't reliably fix for everyone.