Attachment 'traceback_attached_jpn.txt'

Download

   1 --> --> 
   2 UnicodeDecodeError
   3 'utf8' codec can't decode byte 0x82 in position 4: unexpected code byte
   4 
   5 If you want to report a bug, please save this page and attach it to your bug report.
   6 
   7 Show debugging information Report bug Visit MoinMoin wiki 
   8 Traceback
   9 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
  10 
  11 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\request\__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0x044877F0>)
  12 
  13  1281                          self.page.send_page(msg=msg)
  14 
  15  1282                      else:
  16 
  17  1283                          handler(self.page.page_name, self)
  18 
  19  1284  
  20 
  21  1285              # every action that didn't use to raise MoinMoinNoFooter must call this now:
  22 
  23 
  24 handler = <function execute at 0x0261D9B0> self = <MoinMoin.request.request_standalone.Request object at 0x044877F0> self.page = <MoinMoin.Page.Page object at 0x04487450> self.page.page_name = u'HidekazuHara/EnglishPage' 
  25 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\action\AttachFile.py in execute (pagename=u'HidekazuHara/EnglishPage', request=<MoinMoin.request.request_standalone.Request object at 0x044877F0>)
  26 
  27   608                 (overwrite and request.user.may.write(pagename) and request.user.may.delete(pagename)):
  28 
  29   609                  if 'file' in request.form:
  30 
  31   610                      do_upload(pagename, request, overwrite)
  32 
  33   611                  else:
  34 
  35   612                      # This might happen when trying to upload file names
  36 
  37 
  38 global do_upload = <function do_upload at 0x0261DA30> pagename = u'HidekazuHara/EnglishPage' request = <MoinMoin.request.request_standalone.Request object at 0x044877F0> overwrite = 0 
  39 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\action\AttachFile.py in do_upload (pagename=u'HidekazuHara/EnglishPage', request=<MoinMoin.request.request_standalone.Request object at 0x044877F0>, overwrite=0)
  40 
  41   715  
  42 
  43   716      # return attachment list
  44 
  45   717      upload_form(pagename, request, msg)
  46 
  47   718  
  48 
  49   719  
  50 
  51 
  52 global upload_form = <function upload_form at 0x0261D9F0> pagename = u'HidekazuHara/EnglishPage' request = <MoinMoin.request.request_standalone.Request object at 0x044877F0> msg = u"\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb'\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'(\u30b5\u30fc\u30d0\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u540d'C:\\Users\\hara\\Documents\\\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'\u300195624)\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002" 
  53 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\action\AttachFile.py in upload_form (pagename=u'HidekazuHara/EnglishPage', request=<MoinMoin.request.request_standalone.Request object at 0x044877F0>, msg=u"\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb'\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'(\u30b5\u30fc\u30d0\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u540d'C:\\Users\\hara\\Documents\\\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'\u300195624)\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002")
  54 
  55   662      # Use user interface language for this generated page
  56 
  57   663      request.setContentLanguage(request.lang)
  58 
  59   664      request.theme.send_title(_('Attachments for "%(pagename)s"', formatted=False) % {'pagename': pagename}, pagename=pagename, msg=msg)
  60 
  61   665      request.write('<div id="content">\n') # start content div
  62 
  63   666      send_uploadform(pagename, request)
  64 
  65 
  66 request = <MoinMoin.request.request_standalone.Request object at 0x044877F0> request.theme = <MoinMoin.theme.modern.Theme instance at 0x0448E0F8> request.theme.send_title = <bound method Theme.send_title of <MoinMoin.theme.modern.Theme instance at 0x0448E0F8>> _ = <function <lambda> at 0x0448B870> formatted undefined builtin False = False pagename = u'HidekazuHara/EnglishPage' msg = u"\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb'\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'(\u30b5\u30fc\u30d0\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u540d'C:\\Users\\hara\\Documents\\\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'\u300195624)\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002" 
  67 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\theme\__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance at 0x0448E0F8>, text=u'"HidekazuHara/EnglishPage \u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb"', **keywords={'msg': u"\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb'\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'(\u30b5\u30fc\u30d0\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u540d'C:\\Users\\hara\\Documents\\\u30c4\u30ad\u3092\u547c\u3076\u9b54\u6cd5\u306e\u8a00\u8449_\u611f\u60f3.juth'\u300195624)\u3092\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002", 'pagename': u'HidekazuHara/EnglishPage'})
  68 
  69  1583          if pagename and request.user.may.read(pagename):
  70 
  71  1584              from MoinMoin.action import AttachFile
  72 
  73  1585              AttachFile.send_link_rel(request, pagename)
  74 
  75  1586  
  76 
  77  1587          output.extend([
  78 
  79 
  80 AttachFile = <module 'MoinMoin.action.AttachFile' from 'C:\Us...esktop\moin-1.6.3\MoinMoin\action\AttachFile.py'> AttachFile.send_link_rel = <function send_link_rel at 0x0261D8F0> request = <MoinMoin.request.request_standalone.Request object at 0x044877F0> pagename = u'HidekazuHara/EnglishPage' 
  81 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\action\AttachFile.py in send_link_rel (request=<MoinMoin.request.request_standalone.Request object at 0x044877F0>, pagename=u'HidekazuHara/EnglishPage')
  82 
  83   428  
  84 
  85   429  def send_link_rel(request, pagename):
  86 
  87   430      files = _get_files(request, pagename)
  88 
  89   431      if len(files) > 0 and not htdocs_access(request):
  90 
  91   432          scriptName = request.getScriptname()
  92 
  93 
  94 files undefined global _get_files = <function _get_files at 0x0261D7F0> request = <MoinMoin.request.request_standalone.Request object at 0x044877F0> pagename = u'HidekazuHara/EnglishPage' 
  95 C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\action\AttachFile.py in _get_files (request=<MoinMoin.request.request_standalone.Request object at 0x044877F0>, pagename=u'HidekazuHara/EnglishPage')
  96 
  97   389      attach_dir = getAttachDir(request, pagename)
  98 
  99   390      if os.path.isdir(attach_dir):
 100 
 101   391          files = [fn.decode(config.charset) for fn in os.listdir(attach_dir)]
 102 
 103   392          files.sort()
 104 
 105   393          return files
 106 
 107 
 108 files undefined fn = '\xe3\x83\x81E\x82\xad\xe3\x82\x92\xe5\x91\xbc\xe3\x81\xb6\xe9\xad\x94\xe6\xb3\x95\xe3\x81E\xe8\xa8\x80\xe8\x91\x89_\xe6\x84\x9f\xe6\x83\xb3.juth' fn.decode = <built-in method decode of str object at 0x0449B890> global config = <module 'MoinMoin.config' from 'C:\Users\hara\Desktop\moin-1.6.3\MoinMoin\config\__init__.py'> config.charset = 'utf-8' global os = <module 'os' from 'C:\Python25\lib\os.pyc'> os.listdir = <built-in function listdir> attach_dir = r'C:\Users\hara\Desktop\moin-1.6.3\wiki\data\pages\HidekazuHara(2f)EnglishPage\attachments' 
 109 C:\Python25\lib\encodings\utf_8.py in decode (input='\xe3\x83\x81E\x82\xad\xe3\x82\x92\xe5\x91\xbc\xe3\x81\xb6\xe9\xad\x94\xe6\xb3\x95\xe3\x81E\xe8\xa8\x80\xe8\x91\x89_\xe6\x84\x9f\xe6\x83\xb3.juth', errors='strict')
 110 
 111    14  
 112 
 113    15  def decode(input, errors='strict'):
 114 
 115    16      return codecs.utf_8_decode(input, errors, True)
 116 
 117    17  
 118 
 119    18  class IncrementalEncoder(codecs.IncrementalEncoder):
 120 
 121 
 122 global codecs = <module 'codecs' from 'C:\Python25\lib\codecs.pyc'> codecs.utf_8_decode = <built-in function utf_8_decode> input = '\xe3\x83\x81E\x82\xad\xe3\x82\x92\xe5\x91\xbc\xe3\x81\xb6\xe9\xad\x94\xe6\xb3\x95\xe3\x81E\xe8\xa8\x80\xe8\x91\x89_\xe6\x84\x9f\xe6\x83\xb3.juth' errors = 'strict' builtin True = True 
 123 UnicodeDecodeError
 124 'utf8' codec can't decode byte 0x82 in position 4: unexpected code byte
 125 
 126 args = ('utf8', '\xe3\x83\x81E\x82\xad\xe3\x82\x92\xe5\x91\xbc\xe3\x81\xb6\xe9\xad\x94\xe6\xb3\x95\xe3\x81E\xe8\xa8\x80\xe8\x91\x89_\xe6\x84\x9f\xe6\x83\xb3.juth', 4, 5, 'unexpected code byte') 
 127 encoding = 'utf8' 
 128 end = 5 
 129 message = '' 
 130 object = '\xe3\x83\x81E\x82\xad\xe3\x82\x92\xe5\x91\xbc\xe3\x81\xb6\xe9\xad\x94\xe6\xb3\x95\xe3\x81E\xe8\xa8\x80\xe8\x91\x89_\xe6\x84\x9f\xe6\x83\xb3.juth' 
 131 reason = 'unexpected code byte' 
 132 start = 4 
 133 System Details
 134 Date: Wed, 11 Jun 2008 11:58:32 +0000 
 135 Platform: win32 (nt) 
 136 Python: Python 2.5.2 (C:\Python25\python.exe) 
 137 MoinMoin: Release 1.6.3 (release) 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-10-23 01:08:58, 39.7 KB) [[attachment:AttachFile_base1.5.8_modified.py]]
  • [get | view] (2008-06-26 00:20:48, 49.5 KB) [[attachment:AttachFile_base170_modified.py]]
  • [get | view] (2007-10-23 07:39:15, 19.9 KB) [[attachment:traceback.html]]
  • [get | view] (2008-06-12 11:59:25, 8.4 KB) [[attachment:traceback_attached_jpn.txt]]
  • [get | view] (2007-10-24 03:10:29, 3.9 KB) [[attachment:עברית.png]]
  • [get | view] (2007-10-24 03:07:46, 3.9 KB) [[attachment:这是一个附件.png]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.