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@gmail.com	lei	Trac Error Msg\r\n{{{\r\nTrac detected an internal error:\r\nException: Error executing command (return code = 127): /bin/sh: tidy: command not found\r\n}}}\r\n\r\n{{{\r\n\r\nPython Traceback\r\n\r\nMost recent call last:\r\nFile "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request\r\nFile "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch\r\nFile "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/wiki/web_ui.py", line 161, in process_request\r\nFile "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/mimeview/api.py", line 834, in send_converted\r\nFile "/usr/local/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/mimeview/api.py", line 560, in convert_content\r\nFile "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 96, in convert_content\r\nFile "build/bdist.linux-i686/egg/pagetodoc/pagetodoc.py", line 161, in execute_external_program\r\n}}}\r\n\r\n\r\nI found the source of trace. pagetodoc.py line94\r\n\r\n{{{\r\n args = '-m -asxhtml -latin1 --doctype omit'\r\n        cmd = 'tidy %s %s' % (args, htmlfilepath)\r\n}}}\r\n\r\n\r\nand execute cmd\r\n\r\n{{{\r\nroot@platoo-dev /opt/scm# tidy -m -asxhtml -latin1 --doctype omit /opt/scm/html_                                filtered.xslt\r\nline 2 column 1 - Error: <xsl:stylesheet> is not recognized!\r\nline 2 column 1 - Warning: missing <!DOCTYPE> declaration\r\nline 2 column 1 - Warning: discarding unexpected <xsl:stylesheet>\r\nline 3 column 9 - Error: <xsl:output> is not recognized!\r\nline 3 column 9 - Warning: discarding unexpected <xsl:output>\r\nline 6 column 3 - Error: <xsl:variable> is not recognized!\r\nline 6 column 3 - Warning: discarding unexpected <xsl:variable>\r\nline 2 column 1 - Warning: plain text isn't allowed in <head> elements\r\nline 6 column 61 - Warning: discarding unexpected </xsl:variable>\r\nline 7 column 3 - Error: <xsl:variable> is not recognized!\r\nline 7 column 3 - Warning: discarding unexpected <xsl:variable>\r\nline 7 column 63 - Warning: discarding unexpected </xsl:variable>\r\nline 8 column 3 - Error: <xsl:variable> is not recognized!\r\nline 8 column 3 - Warning: discarding unexpected <xsl:variable>\r\nline 8 column 57 - Warning: discarding unexpected </xsl:variable>\r\nline 11 column 9 - Error: <xsl:template> is not recognized!\r\n228 warnings, 86 errors were found! Not all warnings/errors were shown.\r\n\r\nThis document has errors that must be fixed before\r\nusing HTML Tidy to generate a tidied up version.\r\n\r\n}}}\r\n\r\nSo, Is this problem caused by xsltproc haven't installed ?\r\nwhen I want to install xsltproc, I found so many libs required.. seem a little complicated.\r\nCould you help me about the installation.\r\n\r\nThanks,\r\nTod.\r\n\r\n	defect	closed	normal	PageToDocIntegration	normal	fixed			0.11
