Description

Describe the bug... Do copy/paste from MS excell to GUI mode.

Steps to reproduce

  1. Do copy/paste from MS excell to GUI mode.

Component selection

Details

/!\ Please can you save the html code to a file and attach it here

--> -->

ConvertError ExpatError: unbound prefix: line 376, column 572

If you want to report a bug, please save this page and attach it to your bug report.

Show debugging information Report bug Visit MoinMoin wiki 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.

E:\Moin\Lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestCGI object>)

1086 from MoinMoin.wikiaction import getHandler 1087 handler = getHandler(self, action) 1088 handler(self.page.page_name, self) 1089 1090 # 5. Or redirect to another page handler = <function do_edit> self = <MoinMoin.request.RequestCGI object> self.page = <MoinMoin.Page.Page instance> self.page.page_name = u'CudaHW' E:\Moin\Lib\site-packages\MoinMoin\wikiaction.py in do_edit (pagename=u'CudaHW', request=<MoinMoin.request.RequestCGI object>)

572 if lasteditor == 'gui': 573 from MoinMoin.converter.text_html_text_x_moin import convert 574 savetext = convert(request, pagename, savetext) # XXX error handling 575 576 # IMPORTANT: normalize text from the form. This should be done in savetext = u'<h3>Cuda HW status page</h3><p class="line886">T...ize="2">Open</font></td></tr></tbody></table></p>' convert = <function convert> request = <MoinMoin.request.RequestCGI object> pagename = u'CudaHW' E:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py in convert (request=<MoinMoin.request.RequestCGI object>, pagename=u'CudaHW', text=u'<page><h3>Cuda HW status page</h3><p class="line...>Open</font></td></tr></tbody></table></p></page>')

1183 def convert(request, pagename, text): 1184 text = u"<page>%s</page>" % text 1185 tree = parse(text) 1186 strip_whitespace().do(tree) 1187 return convert_tree(request, pagename).do(tree) tree undefined global parse = <function parse> text = u'<page><h3>Cuda HW status page</h3><p class="line...>Open</font></td></tr></tbody></table></p></page>' E:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py in parse (text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>')

1179 return xml.dom.minidom.parseString(text) 1180 except xml.parsers.expat.ExpatError, msg: 1181 raise ConvertError('ExpatError: %s' % msg) 1182 1183 def convert(request, pagename, text): global ConvertError = <class MoinMoin.converter.text_html_text_x_moin.ConvertError> msg = <xml.parsers.expat.ExpatError instance> ConvertError ExpatError: unbound prefix: line 376, column 572

exceptions = <bound method ConvertError.exceptions of <MoinMo...ter.text_html_text_x_moin.ConvertError instance>> innerException = (<class xml.parsers.expat.ExpatError>, <xml.parsers.expat.ExpatError instance>, <traceback object>) message = 'ExpatError: unbound prefix: line 376, column 572' name = 'MoinMoin Convert Error' 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.

E:\Moin\Lib\site-packages\MoinMoin\converter\text_html_text_x_moin.py in parse (text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>')

1177 text = text.encode(config.charset) 1178 try: 1179 return xml.dom.minidom.parseString(text) 1180 except xml.parsers.expat.ExpatError, msg: 1181 raise ConvertError('ExpatError: %s' % msg) global xml = <module 'xml' from 'C:\Python\lib\xml\init.pyc'> xml.dom = <module 'xml.dom' from 'C:\Python\lib\xml\dom\init.pyc'> xml.dom.minidom = <module 'xml.dom.minidom' from 'C:\Python\lib\xml\dom\minidom.pyc'> xml.dom.minidom.parseString = <function parseString> text = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>' C:\Python\lib\xml\dom\minidom.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>', parser=None)

1923 if parser is None: 1924 from xml.dom import expatbuilder 1925 return expatbuilder.parseString(string) 1926 else: 1927 from xml.dom import pulldom expatbuilder = <module 'xml.dom.expatbuilder' from 'C:\Python\lib\xml\dom\expatbuilder.pyc'> expatbuilder.parseString = <function parseString> string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>' C:\Python\lib\xml\dom\expatbuilder.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>', namespaces=1)

938 else: 939 builder = ExpatBuilder() 940 return builder.parseString(string) 941 942 builder = <xml.dom.expatbuilder.ExpatBuilderNS instance> builder.parseString = <bound method ExpatBuilderNS.parseString of <xml.dom.expatbuilder.ExpatBuilderNS instance>> string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>' C:\Python\lib\xml\dom\expatbuilder.py in parseString (self=<xml.dom.expatbuilder.ExpatBuilderNS instance>, string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>')

221 parser = self.getParser() 222 try: 223 parser.Parse(string, True) 224 self._setup_subset(string) 225 except ParseEscape: parser = <pyexpat.xmlparser object> parser.Parse = <built-in method Parse of pyexpat.xmlparser object> string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...>Open</font></td></tr></tbody></table></p></page>' builtin True = True ExpatError unbound prefix: line 376, column 572

args = ('unbound prefix: line 376, column 572',) code = 27 lineno = 376 offset = 572 System Details Date: Wed, 24 Jan 2007 22:45:58 +0000 Platform: win32 (nt) Python: Python 2.4.2 (C:\Python\python.exe) MoinMoin: Release 1.5.2 (release)

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Using OpenOffice to paste the table/sheet is working fine. Please open the Excel spreadsheet from OpenOffice and copy the range of cells you like from OpenOffice. Paste it into GUI editor and it will just work.

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/GuiEditorExcelPasteProblem (last edited 2008-08-06 09:12:50 by MoonByeongweon)