lucene==6.2.0 In [1]: from jcc import config In [2]: config.SHARED Out[2]: True
I've tried to build it in shared and in non-shared mode and in both of the times that test didn't pass. 2016-11-03 21:27 GMT+00:00 Andi Vajda <va...@apache.org>: > > On Thu, 3 Nov 2016, Luís Campos wrote: > > Hi! :) >> >> I'm currently trying to install pylucene on my machine and I'm following >> the official instructions. >> >> When I run "make test" one (and only this one) of the tests fail: >> >> /usr/bin/python test/test_PythonException.py >> >>> E >>> ====================================================================== >>> ERROR: testThroughLayerException (__main__.PythonExceptionTestCase) >>> ---------------------------------------------------------------------- >>> Traceback (most recent call last): >>> File "test/test_PythonException.py", line 34, in >>> testThroughLayerException >>> qp.parse("foo bar") >>> JavaError: <super: <class 'JavaError'>, <JavaError object>> >>> Java stacktrace: >>> java.lang.RuntimeException: TestException >>> at >>> org.apache.pylucene.queryparser.classic.PythonQueryParser.ge >>> tFieldQuery_quoted(Native >>> Method) >>> at >>> org.apache.pylucene.queryparser.classic.PythonQueryParser.ge >>> tFieldQuery(Unknown >>> Source) >>> at >>> org.apache.lucene.queryparser.classic.QueryParser.MultiTerm( >>> QueryParser.java:585) >>> at >>> org.apache.lucene.queryparser.classic.QueryParser.Query(Quer >>> yParser.java:198) >>> at >>> org.apache.lucene.queryparser.classic.QueryParser.TopLevelQu >>> ery(QueryParser.java:187) >>> at >>> org.apache.lucene.queryparser.classic.QueryParserBase.parse( >>> QueryParserBase.java:111) >>> >> >> >> >> I've installed the JJC that came with the PyLucene source code. >> >> $ java -version >> openjdk version "1.8.0_91" >> OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16. >> 04.1-b14) >> OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode) >> >> $ python --version >> Python 2.7.12 >> >> I'm on Ubuntu 16.04 >> > > Which version of PyLucene did you build ? > Did you build JCC in 'shared' mode ? > To check, run this in python > > >>> from jcc import config > >>> config.SHARED > True > > Andi.. > > > >> Note: I have little experience on Java >> >> Does anyone know what is happening and how to solve it? >> Thanks! >> >> LC >> >