logo       

UnicodeDecodeError'utf8' codec can't decode bytes in position 0-1: invalid : msg#00027

web.wiki.moin.general

Subject: UnicodeDecodeError'utf8' codec can't decode bytes in position 0-1: invalid data

Hi,

I just updated our old RedHat 8.0 moinmoin 1.2.4 Server to Fedora Core 3
with moinmoin 1.3.3.
Now I have one page which gaves me an error.

UnicodeDecodeError'utf8' codec can't decode bytes in position 0-1: invalid
data
I attached the whole error page to this mail.

I ran all the migration scripts, is there anything I can do to reconstruct
the page?
Ralf

--> --> *UnicodeDecodeError*'utf8' codec can't decode bytes in position 0-1: invalid data *Please include this information in your bug reports!:* Python Python 2.3.4: /usr/bin/python Linux wl000339-SNIP-2.6.10-1.741_FC3 #1 Thu Jan 13 16:38:22 EST 2005 i686 MoinMoin Release 1.3.3 [Revision 1.3.3 release] Thu Feb 3 10:35:49 2005 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /usr/lib/python2.3/site-packages/MoinMoin/request.py in *run*(self=) 882 else: 883 try: 884 cgitb.Hook(file=self).handle(saved_exc) 885 # was: cgitb.handler() 886 except: *cgitb* = , cgitb.*Hook* = , file /undefined/, *self* = , ).handle /undefined/, *saved_exc* = (, , ) /usr/lib/python2.3/site-packages/MoinMoin/Page.py in *send_page*(self=, request=, msg='', **keywords={'count_hit': 1}) 1123 pagename=self.page_name, print_mode=print_mode, 1124 media=media, pi_refresh=pi_refresh, 1125 allow_doubleclick=1, trail=trail, 1126 ) 1127 allow_doubleclick /undefined/, *trail* = [u'Prozessmanagement, Multitasking und Sessions', u'ChangeManagment', u'Hotline/NVD', u'CPMS', u'MtcQip'] /usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py in *send_title*(request=, text=u'MtcQip', **keywords={'allow_doubleclick': 1, 'link': '/mtcsn-wiki/MtcQip?action="" 'media': 'screen', 'msg': '', 'page': , 'pagename': u'MtcQip', 'pi_refresh': None, 'print_mode': False, 'trail': [u'Prozessmanagement, Multitasking und Sessions', u'ChangeManagment', u'Hotline/NVD', u'CPMS', u'MtcQip']}) 1101 if pagename: 1102 from MoinMoin.action import AttachFile 1103 AttachFile.send_link_rel(request, pagename) 1104 1105 output.extend([ *AttachFile* = , AttachFile.*send_link_rel* = , *request* = , *pagename* = u'MtcQip' /usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py in *send_link_rel*(request=, pagename=u'MtcQip') 268 269 def send_link_rel(request, pagename): 270 files = _get_files(request, pagename) 271 if len(files) > 0 and not htdocs_access(request): 272 scriptName = request.getScriptname() files /undefined/, /global/ *_get_files* = , *request* = , *pagename* = u'MtcQip' /usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py in *_get_files*(request=, pagename=u'MtcQip') 249 attach_dir = getAttachDir(request, pagename) 250 if os.path.isdir(attach_dir): 251 files = map(lambda a: a.decode(config.charset), os.listdir(attach_dir)) 252 files.sort() 253 return files files /undefined/, map /undefined/, a /undefined/, /global/ *config* = , config.*charset* = 'utf-8', /global/ *os* = , os.*listdir* = , *attach_dir* = '../data/pages/MtcQip/attachments' /usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py in *(a='\xdcbersicht_Subnetze_MTC_ALt_53-124')* 249 attach_dir = getAttachDir(request, pagename) 250 if os.path.isdir(attach_dir): 251 files = map(lambda a: a.decode(config.charset), os.listdir(attach_dir)) 252 files.sort() 253 return files files /undefined/, map /undefined/, *a* = '\xdcbersicht_Subnetze_MTC_ALt_53-124', a.*decode* = , /global/ *config* = , config.*charset* = 'utf-8', /global/ *os* = , os.*listdir* = , attach_dir /undefined/ *UnicodeDecodeError*: 'utf8' codec can't decode bytes in position 0-1: invalid data __doc__ = 'Unicode decoding error.' __getitem__ = > __init__ = > __module__ = 'exceptions' __str__ = > args = ('utf8', '\xdcbersicht_Subnetze_MTC_ALt_53-124', 0, 2, 'invalid data') encoding = 'utf8' end = 2 object = '\xdcbersicht_Subnetze_MTC_ALt_53-124' reason = 'invalid data' start = 0
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise