Description
When Xapian is not installed, a request for the SystemInfo page yields the following:
<<SystemInfo: execution failed [No module named xapian] (see also the log)>>
For logged-in normal user, the above is all that is on the page.
For super user, the above line is followed by Wiki Configuration details.
Steps to reproduce
View the SystemInfo page under Moin 1.9RC1 on a system that does not have Xapian installed.
Example
The log contents:
ERROR 2009-11-17 06:51:54,203 MoinMoin.macro:134 Macro SystemInfo (page: 'SystemInfo') raised an exception:
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\MoinMoin\macro\__init__.py", line 124, in execute
return execute(self, args)
File "C:\Python25\Lib\site-packages\MoinMoin\macro\__init__.py", line 109, in <lambda>
_self.request, call, _args, [_self])
File "C:\Python25\Lib\site-packages\MoinMoin\wikiutil.py", line 1925, in invoke_extension_function
return function(*fixed_args, **kwargs)
File "C:\Python25\Lib\site-packages\MoinMoin\macro\SystemInfo.py", line 172, in macro_SystemInfo
return SystemInfo(macro).render()
File "C:\Python25\Lib\site-packages\MoinMoin\macro\SystemInfo.py", line 53, in render
return self.formatter.rawHTML(self.getInfo())
File "C:\Python25\Lib\site-packages\MoinMoin\macro\SystemInfo.py", line 130, in getInfo
from MoinMoin.search.Xapian.indexing import XapianIndex
File "C:\Python25\Lib\site-packages\MoinMoin\search\Xapian\__init__.py", line 10, in <module>
from MoinMoin.search.Xapian.indexing import XapianIndex, Query, MoinSearchConnection, MoinIndexerConnection
File "C:\Python25\Lib\site-packages\MoinMoin\search\Xapian\indexing.py", line 12, in <module>
import xapian
ImportError: No module named xapian
Component selection
- /MoinMoin/search
Details
MoinMoin Version |
1.9RC1 |
OS and Version |
W/7 RC1 |
Python Version |
2.5 |
Server Setup |
Apache |
Server Details |
WSGI |
Language you are using the wiki in (set in the browser/UserPreferences) |
en |
Workaround
Discussion
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.9/rev/14863ba96c46
