Attachment 'shelve_traceback.html'

Download

Creating a new page

You create a new page by visiting the page. If the page does not exists, MoinMoin will suggest to create it. There are several ways to create a new page:

By Adding a link on another page

  1. Edit another page
  2. Add a link to the new page, either as a WikiName or as ["Name With Spaces"]

  3. Save the page and click the new link
  4. Click one of the template names
  5. Edit your new page and save it

For more information on linking to other pages, see HelpOnLinking.

By visiting the page

  1. Enter the address of the new page, e.g http://example.com/wiki/MyNewPage in the browser location box and press Enter

  2. Click one of the template names
  3. Edit your new page and save it

    (!) Might not work on all browsers if the page name contains non ASCII characters.

By using the NewPage macro

If the current page uses the NewPage macro:

  1. Enter the page name in the text box and click "Create New Page"

  2. Edit your page and save it

Example:

The NewPage macro make it easy to create new pages in one step, using certain template or automatically creating a sub page. For more help on NewPage macro, see HelpOnMacros.

By using the GoTo macro

If the current page uses the GoTo macro:

  1. Enter the page name in the text box and click "Go To Page"

  2. Click "Create new page"
  3. Edit your page and save it

Example:

Creating and using template pages

See HelpOnTemplates.

Setting Variables

See HelpOnVariables

Editor backup

If you have a homepage (a page with the same name as your user name), each time you save or preview a page, a backup of the text is saved as UserName/MoinEditorBackup. If your browser crashed when editing a page and you did a preview, you can get the text from the backup. Use preview often!

  • (!) If sub pages are disabled, the backup is saved as UserNameMoinEditorBackup

--> -->

UnpicklingError

could not find MARK

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 do_show>
    • self = <MoinMoin.request.request_standalone.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'HelpOnPageCreation'
  2. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/action/__init__.py in do_show (pagename=u'HelpOnPageCreation', request=<MoinMoin.request.request_standalone.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 258 container.append(url)
    2. 259 msg = Dialog(request, content=unicode(container))
    3. 260 pg.send_page(count_hit=count_hit, print_mode=print_mode, content_only=content_only, msg=msg)
    4. 261
    5. 262 def do_format(pagename, request):
    • pg = <MoinMoin.Page.Page object>
    • pg.send_page = <bound method Page.send_page of <MoinMoin.Page.Page object>>
    • count_hit = 1
    • print_mode = 0
    • content_only = 0
    • msg = None
  3. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    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'HelpOnPageCreation'
    • 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'HelpOnPageCreation', **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 14:23:51'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': '', '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 14:23:51'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': '', '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 14:23:51'}, 'logo_string': u'<img src="/moin_static170/common/moinmoin.png" alt="MoinMoin Logo">', 'msg': '', '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 pageinfo (self=<MoinMoin.theme.modern.Theme instance>, page=<MoinMoin.Page.Page object>)

    1. 708 text = "Recommender not configured"
    2. 709 if recommender is not None:
    3. 710 text = recommender.classify(self.request, page)
    4. 711 info = "%s (%s) - Category: %s" % (wikiutil.escape(pagename), info, text)
    5. 712 html = '<p id="pageinfo" class="info"%(lang)s>%(info)s</p>\n' % {
    • text = 'Recommender not configured'
    • recommender = <MoinMoin.classifier.recommendation_system.Recommender object>
    • recommender.classify = <bound method Recommender.classify of <MoinMoin....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 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
  8. /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. 328 for token in self.features:
    2. 329 w = 0.0 # The weight
    3. 330 n = self._get_document_frequency(token)
    4. 331 w = (tokens.count(token) / self.data['tmax'][token]) * math.log(self.data['count'] / n)
    5. 332 #assert(0.0<=w<=1.0)
    • n undefined
    • self = <MoinMoin.classifier.recommendation_system.FeatureDB instance>
    • self._get_document_frequency = <bound method FeatureDB._get_document_frequency ...sifier.recommendation_system.FeatureDB instance>>
    • token = u'ff8080'
  9. /home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/classifier/recommendation_system.py in _get_document_frequency (self=<MoinMoin.classifier.recommendation_system.FeatureDB instance>, term=u'ff8080')

    1. 290 @param term: The term that should be scored
    2. 291 """
    3. 292 return self.data['available'][term]
    4. 293
    5. 294 def save(self):
    • self = <MoinMoin.classifier.recommendation_system.FeatureDB instance>
    • self.data = <DbfilenameShelf instance>
    • term = u'ff8080'
  10. /home/user/workspace/moin-1.7-classify-mneagul/shelve.py in __getitem__ (self=<DbfilenameShelf instance>, key='available')

    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

UnpicklingError

could not find MARK

  • args = ('could not find MARK',)

System Details

  • Date: Mon, 20 Aug 2007 14:29:02 +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.