UnicodeDecodeError
'ascii' codec can't decode byte 0xe2 in position 168: ordinal not in range(128)
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
c:\Python25\lib\site-packages\MoinMoin\request.py
in run
(self=<MoinMoin.request.RequestCGI object at 0x006F6490>)
- 1170 self.page.send_page(self, msg=msg)
- 1171 else:
- 1172 handler(self.page.page_name, self)
- 1173
- 1174 # generate page footer (actions that do not want this footer use
- handler
= <function execute at 0x00A4A8B0>
- self
= <MoinMoin.request.RequestCGI object at 0x006F6490>
- self.page
= <MoinMoin.Page.Page instance at 0x008CAB48>
- self.page.page_name
= u'WikiAdministration'
D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py
in execute
(pagename=u'WikiAdministration', request=<MoinMoin.request.RequestCGI object at 0x006F6490>)
- 1688 def execute (pagename, request):
- 1689 try:
- 1690 CreatePdfDocument().run (pagename = pagename, request = request)
- 1691 except:
- 1692 raise
- global
CreatePdfDocument
= <class wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument at 0x00A50540>
- ).run
= <unbound method CreatePdfDocument.run>
- pagename
= u'WikiAdministration'
- request
= <MoinMoin.request.RequestCGI object at 0x006F6490>
D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py
in run
(self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument
instance at 0x00A4B148>, pagename=u'WikiAdministration',
request=<MoinMoin.request.RequestCGI object at 0x006F6490>)
- 1348 self.set_page_values()
- 1349 self.update_values(useform=False)
- 1350 return self.do_generate()
- 1351
- 1352 # Create a PDF document from form settings.
- self
= <wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>
- self.do_generate
= <bound method CreatePdfDocument.do_generate of <...cument.CreatePdfDocument instance at 0x00A4B148>>
D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py
in do_generate
(self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>)
- 1413 html = self.get_html()
- 1414 if html:
- 1415 pdfdata = self.html2pdf(html)
- 1416 if pdfdata:
- 1417 # Send as application/pdf the generated file by HTMLDOC
- pdfdata undefined
- self
= <wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>
- self.html2pdf
= <bound method CreatePdfDocument.html2pdf of <wik...cument.CreatePdfDocument instance at 0x00A4B148>>
- html
= u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN...v id="pagebottom"></div>\n</div>\n</body>\n</html>\n\n'
D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py
in html2pdf
(self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument
instance at 0x00A4B148>, html=u'<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN...v id="pagebottom"></div>\n</div>\n</body>\n</html>\n\n')
- 1644 cmdstr = self.default_values['htmldoc_cmd'] + u' --help'
- 1645 (htmldoc_help, htmldoc_err) = pipeCommand(cmdstr)
- 1646 errmsg += u'<p>Execute
"e;<tt>%s</tt>"e;:<br/><pre>%s</pre></p>'
% (wikiutil.escape(cmdstr), wikiutil.escape(htmldoc_help),)
- 1647 if 'env' in self.request.__dict__:
- 1648 reqenv = u'%s' % wikiutil.escape(self.request.env)
- errmsg
= u'HTMLDOC command:<pre>htmldoc --cookies MOIN_ID=1...e --permission modify,copy,print,annotate -</pre>'
- global
wikiutil
= <module 'MoinMoin.wikiutil' from 'C:\Python25\lib\site-packages\MoinMoin\wikiutil.pyc'>
- wikiutil.escape
= <function escape at 0x0078DEF0>
- cmdstr
= u'htmldoc --help'
- htmldoc_help
= 'Content-Type: application/pdf\r\nContent-Length: 2...595282a75da3a94d80479>]>>\nstartxref\n248790\n%%EOF\n'
UnicodeDecodeError
'ascii' codec can't decode byte 0xe2 in position 168: ordinal not in range(128)
- args = ('ascii', 'Content-Type: application/pdf\r\nContent-Length: 2...da3a94d80479>]>>\nstartxref\n248790\n%%EOF\n', 168, 169, 'ordinal not in range(128)')
- encoding = 'ascii'
- end = 169
- message = ''
- object = 'Content-Type: application/pdf\r\nContent-Length: 2...da3a94d80479>]>>\nstartxref\n248790\n%%EOF\n'
- reason = 'ordinal not in range(128)'
- start = 168
System Details
- Date: Mon, 24 Sep 2007 05:50:53 +0000
- Platform: win32 (nt)
- Python: Python 2.5.1 (C:\Python25\python.exe)
- MoinMoin: Release 1.5.7 (release)