﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
4396,error: Tidy not found (but works at shell),sunyanzicc.net@…,lei,"Trac Error Msg
{{{
Trac detected an internal error:
Exception: Error executing command (return code = 127): /bin/sh: tidy: command not found
}}}

{{{

Python Traceback

Most recent call last:
File ""/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py"", line 423, in _dispatch_request
File ""/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py"", line 197, in dispatch
File ""/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/web_ui.py"", line 161, in process_request
File ""/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/mimeview/api.py"", line 834, in send_converted
File ""/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/mimeview/api.py"", line 560, in convert_content
File ""build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py"", line 96, in convert_content
File ""build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py"", line 161, in execute_external_program
}}}


I found the source of trace. pagetodoc.py line94

{{{
 args = '-m -asxhtml -latin1 --doctype omit'
        cmd = 'tidy %s %s' % (args, htmlfilepath)
}}}


and execute cmd

{{{
root@platoo-dev /opt/scm# tidy -m -asxhtml -latin1 --doctype omit /opt/scm/html_                                filtered.xslt
line 2 column 1 - Error: <xsl:stylesheet> is not recognized!
line 2 column 1 - Warning: missing <!DOCTYPE> declaration
line 2 column 1 - Warning: discarding unexpected <xsl:stylesheet>
line 3 column 9 - Error: <xsl:output> is not recognized!
line 3 column 9 - Warning: discarding unexpected <xsl:output>
line 6 column 3 - Error: <xsl:variable> is not recognized!
line 6 column 3 - Warning: discarding unexpected <xsl:variable>
line 2 column 1 - Warning: plain text isn't allowed in <head> elements
line 6 column 61 - Warning: discarding unexpected </xsl:variable>
line 7 column 3 - Error: <xsl:variable> is not recognized!
line 7 column 3 - Warning: discarding unexpected <xsl:variable>
line 7 column 63 - Warning: discarding unexpected </xsl:variable>
line 8 column 3 - Error: <xsl:variable> is not recognized!
line 8 column 3 - Warning: discarding unexpected <xsl:variable>
line 8 column 57 - Warning: discarding unexpected </xsl:variable>
line 11 column 9 - Error: <xsl:template> is not recognized!
228 warnings, 86 errors were found! Not all warnings/errors were shown.

This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

}}}

So, Is this problem caused by xsltproc haven't installed ?
when I want to install xsltproc, I found so many libs required.. seem a little complicated.
Could you help me about the installation.

Thanks,
Tod.

",defect,closed,normal,PageToDocIntegration,normal,fixed,,,0.11
