|
|
|
NXLucene installation guide
Last modified:
10/18/2006 05:53 PM
NXLucene Installation
1 Requirements
See the troubleshooting section if you are having errors at startup or while launching tests with the PyLucene installation. 2 Installation
3 For administrators
4 Testing for developpers
5 TroubleshootingIf you need support check the cps-devel list 5.1 Python and unicode problemSome distributions raise the error below while launching the tests above
Traceback (most recent call last):
File "src/nxlucene/tests/test_xmlrpc_server.py", line 25, in ?
import nxlucene.testing.xmlrpc
File "src/nxlucene/testing/xmlrpc.py", line 28, in ?
from nxlucene.core import LuceneServer
File "src/nxlucene/core.py", line 25, in ?
import PyLucene
File "/home/janguenot/NXLucene/src/PyLucene/python/PyLucene.py",
line 4, in ? import _PyLucene
ImportError:
/home/janguenot/NXLucene/src/PyLucene/python/_PyLucene.so: undefined
symbol: PyUnicodeUCS2_FromUnicode
The reason is that the binaries are commpiled with UCS2 support. If your system has en ICS4 support then this error will occur. In this case you have 2 options :
5.2 TwistedWeb missing dependenciesIf you get the error below while launching the tests it means your twisted installation is incomplete. Your Python installation is missing TwistedWeb. (See the dependencies on top of this file):
Traceback (most recent call last):
File "src/nxlucene/tests/test_xmlrpc_server.py", line 25, in ?
import nxlucene.testing.xmlrpc
File "src/nxlucene/testing/xmlrpc.py", line 27, in ?
from nxlucene.xmlrpc import XMLRPCLuceneServer
File "src/nxlucene/xmlrpc.py", line 24, in ?
from twisted.web import xmlrpc
ImportError: No module named web
5.3 Lucene store directoryDO NOT create the store directory yourself, let NXLucene do it, just make sure the user lauching the process has enough rights to do so. In case the directory exists but is empty, the server will fail and show logs like: LuceneServer - INFO - Request <PyLucene.BooleanQuery; proxy of C++ org::apache::lucene::search::BooleanQuery instance at <PyCObject object at 0xb6106b18>> failed... 5.4 AnalysersIf you are working with the French analyzer for instance, make sure the user running NXLucene has read rights on executable files and others like text files listing stop words.
|
|
|