Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 84076200BC6 for ; Sun, 6 Nov 2016 00:41:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8278E160B09; Sat, 5 Nov 2016 23:41:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C9A7B160AEF for ; Sun, 6 Nov 2016 00:41:09 +0100 (CET) Received: (qmail 33709 invoked by uid 500); 5 Nov 2016 23:41:09 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 33697 invoked by uid 99); 5 Nov 2016 23:41:08 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2016 23:41:08 +0000 Received: from [192.168.0.34] (ovaltofu.org [50.0.193.30]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 993DA1A046A; Sat, 5 Nov 2016 23:41:08 +0000 (UTC) Date: Sat, 5 Nov 2016 16:41:07 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: =?ISO-8859-15?Q?Lu=EDs_Campos?= cc: pylucene-dev@lucene.apache.org Subject: Re: tests not passing - ERROR: testThroughLayerException (__main__.PythonExceptionTestCase) In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1510704575-1478389268=:14221" archived-at: Sat, 05 Nov 2016 23:41:10 -0000 --0-1510704575-1478389268=:14221 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 4 Nov 2016, Luís Campos wrote: > 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. As I can't reproduce this, you're going to need to trace through the code if you want to get to the bottom of this error. Sorry for being no more helpful... Andi.. > > 2016-11-03 21:27 GMT+00:00 Andi Vajda : > >> >> 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: , > >>>> 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 >>> >> > --0-1510704575-1478389268=:14221--