On Fri, 10 Oct 2014, Márk Csaba wrote:

The output is the same:

$ /usr/local/bin/python
Python 2.6.8 (unknown, Apr 14 2013, 19:37:24)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import lucene
lucene.VERSION
'4.10.1'
lucene.JCC_VERSION
'2.21'

I got an error running isShared with JDK6:

You can't use JDK 6 anymore with PyLucene since version 4.8, Lucene requires at least JDK 7.

lucene.initVM().isShared()
Exception in thread "main" java.lang.NoSuchMethodError: compare
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
lucene.JavaError

That is very suspicious. You're still likely running something older than what you built.

From what I've seen before, you're not building lucene with --shared (not
running JCC in shared mode), thus lucene.initVM().isShared() should return False.
Or, if I'm mistaken about this, it should return True, but not error out.

Try this instead:
  $ python
  $ import lucene
  $ lucene.initVM()
  <jcc.JCCEnv object at 0x10dd020f0>
  $ _.isShared()
  True  (for me, may be different for you depending on your use of --shared)

Andi..


I've tried to compile it with JDK 1.6 but it said: "Minimum supported Java version 
is 1.7".

Csaba

-----Original Message-----
From: Andi Vajda [mailto:va...@apache.org]
Sent: Friday, October 10, 2014 12:31 AM
To: pylucene-dev@lucene.apache.org
Subject: RE: build pyLucene 4.10.1-1


On Fri, 10 Oct 2014, Márk Csaba wrote:

Hello Andi,

thank you for the suggestions.
There were previous versions of JCC and lucene. I've removed that folders from 
site-packages and I did a make clean; make; make install; make test.
Unfortunately it didn't solve the problem.

Then try the commands below and make sure you get this output:
  $ python
  >>> import lucene
  >>> lucene.VERSION
  '4.10.1'
  >>> lucene.JCC_VERSION
  '2.21'

Also, what does 'lucene.initVM().isShared()' return at the python prompt ?

Andi..


Csaba

-----Original Message-----
From: Andi Vajda [mailto:va...@apache.org]
Sent: Thursday, October 09, 2014 9:41 PM
To: pylucene-dev@lucene.apache.org
Subject: Re: build pyLucene 4.10.1-1



These are ignorable javac errors. If you prefer not to, you should contact the 
lucene developer list at d...@lucene.apache.org.


I suspect that you have another older installation of PyLucene or JCC that is 
being picked up, maybe ?

Did you run make install before running tests (you shouldn't have to) ?

Andi..


Reply via email to