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.getFieldQuery_quoted(Native
Method)
at
org.apache.pylucene.queryparser.classic.PythonQueryParser.getFieldQuery(Unknown
Source)
at
org.apache.lucene.queryparser.classic.QueryParser.MultiTerm(QueryParser.java:585)
at
org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:198)
at
org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(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

Reply via email to