Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 570 invoked from network); 18 May 2010 17:41:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 May 2010 17:41:20 -0000 Received: (qmail 28034 invoked by uid 500); 18 May 2010 17:41:20 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 27959 invoked by uid 500); 18 May 2010 17:41:20 -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 27951 invoked by uid 99); 18 May 2010 17:41:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 17:41:20 +0000 X-ASF-Spam-Status: No, hits=-0.3 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 May 2010 17:41:14 +0000 Received: from [192.168.0.4] ([192.168.0.4]) (authenticated bits=0) by ovaltofu.org (8.14.3/8.14.4) with ESMTP id o4IHep2j010181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 18 May 2010 10:40:51 -0700 (PDT) Date: Tue, 18 May 2010 10:42:38 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api In-Reply-To: Message-ID: References: <4BEAD7AF.5020504@semantics.de> <4BEC8E27.8010406@cheimes.de> <4BF2C2C0.30601@cheimes.de> User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 18 May 2010, Andi Vajda wrote: > > On Tue, 18 May 2010, Andi Vajda wrote: > >> I don't have this problem with my simple program. >> My SillyAnalyzer class extends Lucene's Analyzer. >> foo.Analyzer is the one imported from lucene. >> >> >>> import lucene, foo >> >>> lucene.initVM() >> >> >>> foo.initVM(".") >> >> >>> foo.SillyAnalyzer.helloWorld() >> Hello World >> >>> foo.SillyAnalyzer.class_ >> >> >>> foo.Analyzer.class_ >> > > I reproduced the problem on Linux but not on Mac OS X. > I suspect some linker issue... Adding the --import'ed .so libraries to the link line on Linux solve several of the problems you reported: - import order doesn't matter anymore - initVM() order doesn't matter anymore - class_ properties are now correct This is now checked into the branch_3x pylucene's branch. Please give it another try with your software, Thanks ! Andi..