[pylucene-dev] Re: question about BerkeleyDbIndexer.py

Andi Vajda vajda at osafoundation.org
Tue Oct 11 17:35:09 PDT 2005


> I am running test on WindowsXP,
> and i install Berkeley DB 4.3.29.
> i just use binaries that download from homepage.

Yes, that is not going to work.

First, PyLucene-db was compiled against 4.3.28 and the python _bsddb extension
is linked statically with the Berkeley DB lib on Windows, which is not good.
See PyLucene's README (the excerpt which I sent you yesterday) which explains 
what you need to do.

Andi..

>
> jian
>
>
>> From: Andi Vajda <vajda at osafoundation.org>
>> Reply-To: Andi Vajda <vajda at osafoundation.org>
>> To: hu jian <zhejian at hotmail.com>
>> CC: pylucene-dev at osafoundation.org
>> Subject: Re: question about BerkeleyDbIndexer.py
>> Date: Tue, 11 Oct 2005 09:13:35 -0700 (PDT)
>> 
>> 
>> First you need to give me some details:
>>   - what operating system are you running on ? (looks like Windows)
>>   - what version of Berkeley DB did you install ?
>>   - Did you build the PyLucene binaries yourself ? If so, with what 
>> compiler,
>>     against what version of Berkeley DB ?
>> 
>> Andi..
>> 
>> On Tue, 11 Oct 2005, hu jian wrote:
>> 
>>> Hello Andi,
>>>
>>>   When i try to run BerkeleyDbIndexer.py,i have this error:
>>> Traceback (most recent call last):
>>> File "BerkeleyDbIndexer.py", line 7, in ?
>>> BerkeleyDbIndexer.main(sys.argv)
>>> File 
>>> "D:\python\PyLucene-db-1.0\PyLucene-db-1.0\samples\LuceneInAction\lia\tools\BerkeleyDbIndexer.py", 
>
>>> line 89, in main
>>> writer = IndexWriter(directory, StandardAnalyzer(), create)
>>> File "D:\Python24\lib\site-packages\PyLucene.py", line 1884, in __init__
>>> newobj = _PyLucene.new_IndexWriter(*args)
>>> PyLucene.JavaError: java.lang.ExceptionInInitializerError
>>> 
>>> could you please give me some advice?
>>> 
>>> Cheers,
>>> 
>>> hu jian
>>> 
>>> 
>>> 
>
>
>


More information about the pylucene-dev mailing list