Attachment 'WikiClusters_traceback.html'
DownloadEOFError
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.
/home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object>)
- 1256 self.page.send_page(msg=msg)
- 1257 else:
- 1258 handler(self.page.page_name, self)
- 1259
- 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'WikiClusters'
/home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/action/__init__.py in do_show (pagename=u'WikiClusters', request=<MoinMoin.request.request_standalone.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 258 container.append(url)
- 259 msg = Dialog(request, content=unicode(container))
- 260 pg.send_page(count_hit=count_hit, print_mode=print_mode, content_only=content_only, msg=msg)
- 261
- 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
/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})
- 1172 # send the page footer
- 1173 if self.default_formatter:
- 1174 request.theme.send_footer(self.page_name, print_mode=print_mode)
- 1175
- 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'WikiClusters'
- print_mode = 0
/home/user/workspace/moin-1.7-classify-mneagul/MoinMoin/theme/__init__.py in send_footer (self=<MoinMoin.theme.modern.Theme instance>, pagename=u'WikiClusters', **keywords={'print_mode': 0})
- 1743 request.write(self.endPage())
- 1744 else:
- 1745 request.write(self.footer(d, **keywords))
- 1746
- 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}
/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})
- 83 """
- 84 page = d['page']
- 85 html = [
- 86 # End of page
- 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 = ''
/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>)
- 708 text = "Recommender not configured"
- 709 if recommender is not None:
- 710 text = recommender.classify(self.request, page)
- 711 info = "%s (%s) - Category: %s" % (wikiutil.escape(pagename), info, text)
- 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>
/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>)
- 441 self.lock.acquire()
- 442 try:
- 443 input = self.fdb.extract_features(request, page, self.num_features)
- 444 if len(input) != self.num_features:
- 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
/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)
- 328 for token in self.features:
- 329 w = 0.0 # The weight
- 330 n = self._get_document_frequency(token)
- 331 w = (tokens.count(token) / self.data['tmax'][token]) * math.log(self.data['count'] / n)
- 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'
/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')
- 290 @param term: The term that should be scored
- 291 """
- 292 return self.data['available'][term]
- 293
- 294 def save(self):
- self = <MoinMoin.classifier.recommendation_system.FeatureDB instance>
- self.data = <DbfilenameShelf instance>
- term = u'ff8080'
/home/user/workspace/moin-1.7-classify-mneagul/shelve.py in __getitem__ (self=<DbfilenameShelf instance>, key='available')
- 117 except KeyError:
- 118 f = StringIO(self.dict[key])
- 119 value = Unpickler(f).load()
- 120 if self.writeback:
- 121 self.cache[key] = value
- value undefined
- global Unpickler = <built-in function Unpickler>
- f = <cStringIO.StringI object>
- ).load undefined
EOFError
- args = ()
System Details
- Date: Mon, 20 Aug 2007 14:31:55 +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.You are not allowed to attach a file to this page.