If you are running PyLucene on Windows, the following excert from PyLucene's README file might contain relevant information:
Andi.. Running the -db- flavor of PyLucene ----------------------------------- PyLucene can be built with support for DbDirectory, a Berkeley DB-based implementation of Lucene's abstract Directory class. DbDirectory can be used as an alternative to FSDirectory when transactional support is required. To use DbDirectory you need an understanding of the python Berkeley DB API documented at http://pybsddb.sourceforge.net/bsddb3.html. This API mirrors the Berkeley DB C API documented at http://www.sleepycat.com/docs. For sample code using DbDirectory, please refer to the test_DbDirectory.py unit test. In order for DbDirectory to work properly, PyLucene and python's _bsddb extension MUST be using the same Berkeley DB SHARED library. PyLucene and python's _bsddb extension MUST be built against the SAME VERSION of Berkeley DB's shared library. If you downloaded a pre-compiled PyLucene-db- binary, that version is Berkeley DB 4.3.28. On Unix, you need to verify that python's _bsddb.so is linked against the same Berkeley DB shared library (on Linux, use 'ldd', on Mac OS X, use 'otool -L'). If it is not, you need to rebuild the _bsddb extension so that it is. You may have to modify the logic in python's setup.py that deals with finding a suitable Berkeley DB installation accordingly. On Windows, this means that you most likely need to build a custom version of python as the default one appears to be shipping with a _bsddb.pyd extension that is statically linked against Berkeley DB's 4.2.52 lib. Building a dynamically linked _bsddb.pyd extension requires changing the _bsddb.vcproj file accordingly. For an example, please see: http://svn.osafoundation.org/chandler/trunk/external/python/win32/ and visit the directory corresponding to your python version. _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
