Attachment 'rawunicodeescape.html'

Download

1. Section Headings

You can create headings by starting and ending a line with up to five equal signs. The heading text is between those markers, separated by a single space.

Headings can be automatically numbered, you can enable or disable this for each page (see #pragma section-numbers on HelpOnProcessingInstructions) and for the whole site (see show_section_numbers on HelpOnConfiguration).

For more information on the possible markup, see HelpOnEditing.

  • /!\ Headings may not contain wiki markup.

    /!\ You cannot indent headings.

1.1. Example

= Heading =
== Subheading ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====

1.2. Display

2. Heading

3. Subheading

3.1. Level 3

3.1.1. Level 4

3.1.1.1. Level 5

Note that proper section numbering requires you to order sections according to a valid structure, i.e. correctly nested. Our sample doesn't do this, so you get a different numbering scheme than you might expect.

--> -->

UnicodeDecodeError

'rawunicodeescape' codec can't decode bytes in position 18-21: truncated \uXXXX

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.

  1. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object>)

    1. 1256 self.page.send_page(msg=msg)
    2. 1257 else:
    3. 1258 handler(self.page.page_name, self)
    4. 1259
    5. 1260 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function execute>
    • self = <MoinMoin.request.request_standalone.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'HelpOnHeadlines'
  2. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/action/trainrecommender.py in execute (pagename=u'HelpOnHeadlines', request=<MoinMoin.request.request_standalone.Request object>)

    1. 25 try:
    2. 26 recommender.train(request, thispage)
    3. 27 except ClassifierException, e:
    4. 28 return thispage.send_page(msg=_("Recommender is not setup correctly: %s" % e))
    5. 29 return thispage.send_page(msg=_("Thank you for your contribution!"))
    • thispage = <MoinMoin.Page.Page object>
    • thispage.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object>>
    • msg undefined
    • _ = <function <lambda>>
  3. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg=u'Thank you for your contribution!', **keywords={})

    1. 1172 # send the page footer
    2. 1173 if self.default_formatter:
    3. 1174 request.theme.send_footer(self.page_name, print_mode=print_mode)
    4. 1175
    5. 1176 request.write(self.formatter.endDocument())
    • request = <MoinMoin.request.request_standalone.Request object>
    • request.theme = <MoinMoin.theme.modern.Theme instance>
    • request.theme.send_footer = <bound method Theme.send_footer of <MoinMoin.theme.modern.Theme instance>>
    • self = <MoinMoin.Page.Page object>
    • self.page_name = u'HelpOnHeadlines'
    • print_mode = 0
  4. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/theme/__init__.py in send_footer (self=<MoinMoin.theme.modern.Theme instance>, pagename=u'HelpOnHeadlines', **keywords={'print_mode': 0})

    1. 1743 request.write(self.endPage())
    2. 1744 else:
    3. 1745 request.write(self.footer(d, **keywords))
    4. 1746
    5. 1747 # stuff moved from request.py
    • request = <MoinMoin.request.request_standalone.Request object>
    • request.write = <bound method Request.write of <MoinMoin.request.request_standalone.Request object>>
    • self = <MoinMoin.theme.modern.Theme instance>
    • self.footer = <bound method Theme.footer of <MoinMoin.theme.modern.Theme instance>>
    • d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'ReimarBauer'), 'last_edit_info': {'editor': u'<span title="ReimarBauer @ localhost.localdomain...st.localdomain[127.0.0.1]">ReimarBauer</a></span>', 'time': '2007-08-20 15:35:15'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': u'Thank you for your contribution!', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', 'page_help_contents': 'HelpContents', ...}
    • keywords = {'print_mode': 0}
  5. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/theme/modern.py in footer (self=<MoinMoin.theme.modern.Theme instance>, d={'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'ReimarBauer'), 'last_edit_info': {'editor': u'<span title="ReimarBauer @ localhost.localdomain...st.localdomain[127.0.0.1]">ReimarBauer</a></span>', 'time': '2007-08-20 15:35:15'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': u'Thank you for your contribution!', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', 'page_help_contents': 'HelpContents', ...}, **keywords={'print_mode': 0})

    1. 83 """
    2. 84 page = d['page']
    3. 85 html = [
    4. 86 # End of page
    5. 87 self.pageinfo(page),
    • html undefined
    • self = <MoinMoin.theme.modern.Theme instance>
    • self.pageinfo = <bound method Theme.pageinfo of <MoinMoin.theme.modern.Theme instance>>
    • page = <MoinMoin.Page.Page object>
    • self.similarpages = <bound method Theme.similarpages of <MoinMoin.theme.modern.Theme instance>>
    • self.endPage = <bound method Theme.endPage of <MoinMoin.theme.modern.Theme instance>>
    • self.emit_custom_html = <bound method Theme.emit_custom_html of <MoinMoin.theme.modern.Theme instance>>
    • self.cfg = <wikiconfig.Config instance>
    • self.cfg.page_footer1 = ''
    • self.editbar = <bound method Theme.editbar of <MoinMoin.theme.modern.Theme instance>>
    • d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': ('Self', u'ReimarBauer'), 'last_edit_info': {'editor': u'<span title="ReimarBauer @ localhost.localdomain...st.localdomain[127.0.0.1]">ReimarBauer</a></span>', 'time': '2007-08-20 15:35:15'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': u'Thank you for your contribution!', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', 'page_help_contents': 'HelpContents', ...}
    • self.credits = <bound method Theme.credits of <MoinMoin.theme.modern.Theme instance>>
    • self.showversion = <bound method Theme.showversion of <MoinMoin.theme.modern.Theme instance>>
    • keywords = {'print_mode': 0}
    • self.cfg.page_footer2 = ''
  6. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/theme/__init__.py in similarpages (self=<MoinMoin.theme.modern.Theme instance>, page=<MoinMoin.Page.Page object>)

    1. 723 if recommender is None:
    2. 724 return ''
    3. 725 similar = recommender.get_similar_html(self.request, page)
    4. 726 return u"".join(similar)
    5. 727
    • similar undefined
    • recommender = <MoinMoin.classifier.recommendation_system.Recommender object>
    • recommender.get_similar_html = <bound method Recommender.get_similar_html of <M...sifier.recommendation_system.Recommender object>>
    • self = <MoinMoin.theme.modern.Theme instance>
    • self.request = <MoinMoin.request.request_standalone.Request object>
    • page = <MoinMoin.Page.Page object>
  7. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/classifier/recommendation_system.py in get_similar_html (self=<MoinMoin.classifier.recommendation_system.Recommender object>, request=<MoinMoin.request.request_standalone.Request object>, page=<MoinMoin.Page.Page object>)

    1. 537 ]
    2. 538 result.append(formatter.number_list(1))
    3. 539 sim = self.get_similar(request, page)
    4. 540 for pg in sim:
    5. 541 if pg == page.page_name:
    • sim undefined
    • self = <MoinMoin.classifier.recommendation_system.Recommender object>
    • self.get_similar = <bound method Recommender.get_similar of <MoinMo...sifier.recommendation_system.Recommender object>>
    • request = <MoinMoin.request.request_standalone.Request object>
    • page = <MoinMoin.Page.Page object>
  8. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/classifier/recommendation_system.py in get_similar (self=<MoinMoin.classifier.recommendation_system.Recommender object>, request=<MoinMoin.request.request_standalone.Request object>, page=<MoinMoin.Page.Page object>)

    1. 517 """
    2. 518 cache = ClassificationCache(request, self.basepath)
    3. 519 cat = self.classify(request, page)
    4. 520 return cache.get(cat)
    5. 521
    • cat undefined
    • self = <MoinMoin.classifier.recommendation_system.Recommender object>
    • self.classify = <bound method Recommender.classify of <MoinMoin....sifier.recommendation_system.Recommender object>>
    • request = <MoinMoin.request.request_standalone.Request object>
    • page = <MoinMoin.Page.Page object>
  9. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/classifier/recommendation_system.py in classify (self=<MoinMoin.classifier.recommendation_system.Recommender object>, request=<MoinMoin.request.request_standalone.Request object>, page=<MoinMoin.Page.Page object>)

    1. 441 self.lock.acquire()
    2. 442 try:
    3. 443 input = self.fdb.extract_features(request, page, self.num_features)
    4. 444 if len(input) != self.num_features:
    5. 445 raise ClassifierException("Invalid input size")
    • builtin input = <built-in function input>
    • self = <MoinMoin.classifier.recommendation_system.Recommender object>
    • self.fdb = <MoinMoin.classifier.recommendation_system.FeatureDB instance>
    • self.fdb.extract_features = <bound method FeatureDB.extract_features of <Moi...sifier.recommendation_system.FeatureDB instance>>
    • request = <MoinMoin.request.request_standalone.Request object>
    • page = <MoinMoin.Page.Page object>
    • self.num_features = 1000
  10. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/classifier/recommendation_system.py in extract_features (self=<MoinMoin.classifier.recommendation_system.FeatureDB instance>, request=<MoinMoin.request.request_standalone.Request object>, page=<MoinMoin.Page.Page object>, num_features=1000)

    1. 329 w = 0.0 # The weight
    2. 330 n = self._get_document_frequency(token)
    3. 331 w = (tokens.count(token) / self.data['tmax'][token]) * math.log(self.data['count'] / n)
    4. 332 #assert(0.0<=w<=1.0)
    5. 333 vector.append(w)
    • w = 0.0
    • tokens = [u'meta : please', u'meta : edit', u'meta : system', u'meta : help', u'meta : pages', u'meta : only', u'meta : moinmaster', u'meta : wiki', u'meta : more', u'meta : information', u'meta : please', u'meta : moinmaster', u'meta : moinpageseditorgroup', u'meta : master', u'meta : page', u'meta : unknown', u'meta : page', u'meta : master', u'meta : date', u'meta : unknown', ...]
    • tokens.count = <built-in method count of list object>
    • token = u'instructions'
    • self = <MoinMoin.classifier.recommendation_system.FeatureDB instance>
    • self.data = <DbfilenameShelf instance>
    • global math = <module 'math' from '/usr/lib/python2.4/lib-dynload/math.so'>
    • math.log = <built-in function log>
    • n = 23
  11. /home/user/workspace/moin-1.7-classify-mneagul/shelve.py in __getitem__ (self=<DbfilenameShelf instance>, key='tmax')

    1. 117 except KeyError:
    2. 118 f = StringIO(self.dict[key])
    3. 119 value = Unpickler(f).load()
    4. 120 if self.writeback:
    5. 121 self.cache[key] = value
    • value undefined
    • global Unpickler = <built-in function Unpickler>
    • f = <cStringIO.StringI object>
    • ).load undefined

UnicodeDecodeError

'rawunicodeescape' codec can't decode bytes in position 18-21: truncated \uXXXX

  • args = ('rawunicodeescape', 'sekojo\\u0BC4\\u4F8B\\u59\x10\x00\x00.\x10\x00\x00\x01\x00\x00\x00b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 18, 22, r'truncated \uXXXX')
  • encoding = 'rawunicodeescape'
  • end = 22
  • object = 'sekojo\\u0BC4\\u4F8B\\u59\x10\x00\x00.\x10\x00\x00\x01\x00\x00\x00b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
  • reason = r'truncated \uXXXX'
  • start = 18

System Details

  • Date: Mon, 20 Aug 2007 16:01:43 +0000
  • Platform: Linux noname 2.6.18-2-k7 #1 SMP Wed Nov 8 20:38:36 UTC 2006 i686
  • Python: Python 2.4.4 (/usr/bin/python)
  • MoinMoin: Release 1.7.0alpha (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-08-20 14:31:16, 25.5 KB) [[attachment:WikiClusters_traceback.html]]
  • [get | view] (2007-08-20 16:02:30, 32.2 KB) [[attachment:rawunicodeescape.html]]
  • [get | view] (2007-08-20 15:15:13, 2.4 KB) [[attachment:rawunicodeescape.txt]]
  • [get | view] (2007-08-20 14:31:27, 31.9 KB) [[attachment:shelve_traceback.html]]
  • [get | view] (2007-08-20 11:30:10, 10.0 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

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