AttributeError
'module' object has no attribute 'xapian_version_string'
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.
/usr/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.FCGI.Request object at 0xf4d6890>)
- 1155 self.page.send_page(msg=msg)
- 1156 else:
- 1157 handler(self.page.page_name, self)
- 1158
- 1159 # every action that didn't use to raise MoinMoinNoFooter must call this now:
- handler = <function do_show at 0xe5a5668>
- self = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
- self.page = <MoinMoin.Page.Page object at 0xf4d6910>
- self.page.page_name = u'HelpOnMacros'
/usr/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'HelpOnMacros', request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 235 count_hit=count_hit,
- 236 print_mode=print_mode,
- 237 content_only=content_only,
- 238 )
- 239
- content_only = 0
/usr/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xf4d6990>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1133 format_args=pi['formatargs'],
- 1134 do_cache=do_cache,
- 1135 start_line=pi['lines'])
- 1136
- 1137 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0xf4e2050>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 7}
/usr/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0xf4d6990>, request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>, body=u'\n[[Navigation(children)]]\n[[TableOfContents]]\n\n=...for values which may be suitable. \n\n[[FootNote]]\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 7})
- 1226 raise
- 1227 try:
- 1228 code = self.makeCache(request, parser)
- 1229 self.execute(request, parser, code)
- 1230 except Exception, e:
- code = <code object <module> at 0xf4d1300, file "HelpOnMacros", line 2>
- self = <MoinMoin.Page.Page object at 0xf4d6990>
- self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object at 0xf4d6990>>
- request = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>
/usr/lib/python2.5/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object at 0xf4d6990>, request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>)
- 1287 saved_current_lang = request.current_lang
- 1288 try:
- 1289 text = request.redirectedOutput(parser.format, formatter)
- 1290 finally:
- 1291 request.current_lang = saved_current_lang
- text undefined
- request = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
- request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.FCGI.Request object at 0xf4d6890>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>
- formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>
/usr/lib/python2.5/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.FCGI.Request object at 0xf4d6890>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>,), **kw={})
- 736 self.redirect(buffer)
- 737 try:
- 738 function(*args, **kw)
- 739 finally:
- 740 self.redirect()
- function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>
- args = (<MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>,)
- kw = {}
/usr/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>, inhibit_p=False)
- 1124 # Scan line, format and write
- 1125 scanning_re = self.in_pre and pre_scan_re or scan_re
- 1126 formatted_line = self.scan(scanning_re, line, inhibit_p=inhibit_p)
- 1127 self.request.write(formatted_line)
- 1128 if self.in_pre == 'no_parser':
- formatted_line = u'<tr> <td colspan="3"><span class="anchor" id="l..."><tt>[[FullSearchCached(text)]]</tt></td>\n</tr>\n'
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>
- scanning_re = <_sre.SRE_Pattern object at 0xe84f2b0>
- line = u'||<5%>[[BR]]||<^ 75% style="margin: 10px;"> Work...r {{{powered}}}:[[FullSearchCached(powered)]] || '
- inhibit_p = False
/usr/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>, scan_re=<_sre.SRE_Pattern object at 0xe84f2b0>, line=u'||<5%>[[BR]]||<^ 75% style="margin: 10px;"> Work...r {{{powered}}}:[[FullSearchCached(powered)]] || ', inhibit_p=False)
- 894 self.in_table or self.in_list):
- 895 result.append(self.formatter.paragraph(1, css_class="line867"))
- 896 result.append(self.replace(match, inhibit_p))
- 897 lastpos = match.end()
- 898
- result = [u'<tr> <td style="width: 5%"><span class="anchor" id="line-31"></span>', '<br />\n', u'</td>\n <td style="margin: 10px; ; width: 75%; vertical-align: top">', '<p class="line862">', u' Works like the ', u'<tt class="backtick">FullSearch</tt>', u' macro but caches the results statically. Use it if you prefer speed over an up-to-date result ', '</td>\n <td>', '<p class="line862">', u' Search for ', u'<tt>powered</tt>', u':']
- result.append = <built-in method append of list object at 0xf4e2560>
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>
- self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>
- match = <_sre.SRE_Match object at 0xf74d210>
- inhibit_p = False
/usr/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>, match=<_sre.SRE_Match object at 0xf74d210>, inhibit_p=False)
- 920 # Get replace method and replace hit
- 921 replace = getattr(self, '_' + type + '_repl')
- 922 result.append(replace(hit))
- 923 return ''.join(result)
- 924 else:
- result = []
- result.append = <built-in method append of list object at 0xf4e2b90>
- replace = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>>
- hit = u'[[FullSearchCached(powered)]]'
/usr/lib/python2.5/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>, word=u'[[FullSearchCached(powered)]]')
- 869 if self.macro is None:
- 870 self.macro = macro.Macro(self)
- 871 return self.formatter.macro(self.macro, macro_name, args)
- 872
- 873 def scan(self, scan_re, line, inhibit_p=False):
- self = <MoinMoin.parser.text_moin_wiki.Parser instance at 0xf4e25f0>
- self.formatter = <MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>
- self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>>
- self.macro = <MoinMoin.macro.Macro instance at 0xf4e80e0>
- macro_name = u'FullSearchCached'
- args = u'powered'
/usr/lib/python2.5/site-packages/MoinMoin/formatter/text_python.py in macro (self=<MoinMoin.formatter.text_python.Formatter instance at 0xf4e2fc8>, macro_obj=<MoinMoin.macro.Macro instance at 0xf4e80e0>, name=u'FullSearchCached', args=u'powered')
- 167 def macro(self, macro_obj, name, args):
- 168 if self.__is_static(macro_obj.get_dependencies(name)):
- 169 return macro_obj.execute(name, args)
- 170 else:
- 171 return self.__insert_code(
- macro_obj = <MoinMoin.macro.Macro instance at 0xf4e80e0>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0xf4e80e0>>
- name = u'FullSearchCached'
- args = u'powered'
/usr/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0xf4e80e0>, macro_name=u'FullSearchCached', args=u'powered')
- 114 else:
- 115 raise ImportError("Cannot load macro %s" % macro_name)
- 116 return execute(self, args)
- 117
- 118 def _m_lang(self, text):
- execute = <function execute at 0xe67e500>
- self = <MoinMoin.macro.Macro instance at 0xf4e80e0>
- args = u'powered'
/usr/lib/python2.5/site-packages/MoinMoin/macro/FullSearch.py in execute (macro=<MoinMoin.macro.Macro instance at 0xf4e80e0>, needle=u'powered')
- 104
- 105 # Search the pages and return the results
- 106 results = search.searchPages(request, needle, sort='page_name')
- 107
- 108 return results.pageList(request, macro.formatter, paging=False)
- results undefined
- global search = <module 'MoinMoin.search' from '/usr/lib/python2.5/site-packages/MoinMoin/search/__init__.pyc'>
- search.searchPages = <function searchPages at 0xe673f50>
- request = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
- needle = u'powered'
- sort undefined
/usr/lib/python2.5/site-packages/MoinMoin/search/__init__.py in searchPages (request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>, query=<MoinMoin.search.queryparser.TextSearch instance at 0xf4e82d8>, sort='page_name', mtime=None, historysearch=None, **kw={})
- 30 if isinstance(query, str) or isinstance(query, unicode):
- 31 query = QueryParser(**kw).parse_query(query)
- 32 return Search(request, query, sort, mtime=mtime,
- 33 historysearch=historysearch).run()
- 34
- historysearch = None
- ).run undefined
/usr/lib/python2.5/site-packages/MoinMoin/search/builtin.py in run (self=<MoinMoin.search.builtin.Search instance at 0xf4e8290>)
- 451 start = time.time()
- 452 if self.request.cfg.xapian_search:
- 453 hits = self._xapianSearch()
- 454 else:
- 455 hits = self._moinSearch()
- hits undefined
- self = <MoinMoin.search.builtin.Search instance at 0xf4e8290>
- self._xapianSearch = <bound method Search._xapianSearch of <MoinMoin.search.builtin.Search instance at 0xf4e8290>>
/usr/lib/python2.5/site-packages/MoinMoin/search/builtin.py in _xapianSearch (self=<MoinMoin.search.builtin.Search instance at 0xf4e8290>)
- 504 clock = self.request.clock
- 505 pages = None
- 506 index = self._xapianIndex(self.request)
- 507
- 508 if index and self.query.xapian_wanted():
- index undefined
- self = <MoinMoin.search.builtin.Search instance at 0xf4e8290>
- self._xapianIndex = <function _xapianIndex at 0xe70ec80>
- self.request = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
/usr/lib/python2.5/site-packages/MoinMoin/search/builtin.py in _xapianIndex (request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>)
- 487 try:
- 488 from MoinMoin.search.Xapian import Index
- 489 index = Index(request)
- 490 except ImportError:
- 491 return None
- index undefined
- Index = <class MoinMoin.search.Xapian.Index at 0xe83e290>
- request = <MoinMoin.request.FCGI.Request object at 0xf4d6890>
/usr/lib/python2.5/site-packages/MoinMoin/search/Xapian.py in __init__ (self=<MoinMoin.search.Xapian.Index instance at 0xf4e8368>, request=<MoinMoin.request.FCGI.Request object at 0xf4d6890>)
- 210
- 211 def __init__(self, request):
- 212 self._check_version()
- 213 BaseIndex.__init__(self, request)
- 214
- self = <MoinMoin.search.Xapian.Index instance at 0xf4e8368>
- self._check_version = <bound method Index._check_version of <MoinMoin.search.Xapian.Index instance at 0xf4e8368>>
/usr/lib/python2.5/site-packages/MoinMoin/search/Xapian.py in _check_version (self=<MoinMoin.search.Xapian.Index instance at 0xf4e8368>)
- 221 # every version greater than or equal to 0.9.6 is allowed for now
- 222 # Note: fails if crossing the 10.x barrier
- 223 if xapian.xapian_version_string() >= '0.9.6':
- 224 return
- 225
- global xapian = <module 'xapian' from '/usr/lib/python2.5/site-packages/xapian/__init__.pyc'>
- xapian.xapian_version_string undefined
AttributeError
'module' object has no attribute 'xapian_version_string'
- args = ("'module' object has no attribute 'xapian_version_string'",)
- message = "'module' object has no attribute 'xapian_version_string'"
System Details
- Date: Thu, 17 May 2012 09:44:21 +0000
- Platform: Linux VO11864 2.6.18-194.32.1.el5xen #1 SMP Wed Jan 5 18:44:24 EST 2011 x86_64
- Python: Python 2.5.5 (/usr/bin/python2.5)
- MoinMoin: Release 1.6.0alpha (release)