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

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