Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-20 Thread Andi Vajda
On Thu, 20 May 2010, Julian Maibaum wrote: Thanks Andi! I'll give it a try tomorrow. I'll also ask Julian to provide some test and sample code for you. Thank you very much for the great work and effort you're putting into jcc, Andi. As far as I can tell, the linking between classes from PyLu

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-20 Thread Julian Maibaum
Thanks Andi! I'll give it a try tomorrow. I'll also ask Julian to provide some test and sample code for you. Thank you very much for the great work and effort you're putting into jcc, Andi. As far as I can tell, the linking between classes from PyLucene and bobo-browse works flawlessly now -

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-20 Thread Christian Heimes
Am 18.05.2010 23:19, schrieb Andi Vajda: The definition of 'sensible' then becomes a shouting match. This is why there is a dozen of so-called sensible defaults for each and every platform claimed to be supported. Between python 2.5, 2.6 and 2.7 the way to invoke a module from the command line ch

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Andi Vajda wrote: I changed the branch_3x pylucene branch to point at the trunk for jcc. You might need to remove the jcc directory from your branch_3x checkout before updating so as to not conflict with the new svn:externals setting. An svn >= 1.5 client is required. A

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: The rather strange bug is that the bobobrowse package doesn't contain any of the bobobrowse classes when I compile JCC, PyLucene and Bobo-Browse inside our environment. Let's see how it's behaving with your latest changes. Looks like this bug is go

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: The Makefile has about a dozen sets of defaults for a variety of platforms. Pick the one closest to your setup, uncomment it (and change it if needed). Then you don't have to enter these on the command line. My point is that you may want to remove

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Christian Heimes
Can you suggest a patch for this ? It is not immediately obvious to me how to do this. I've attached a quick patch. Sorry for all the noise, my editor is configured to reformat Python code. The patch provides a custom build_py command class for distutils / setuptools. It writes jcc.config du

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: 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 ch

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Christian Heimes
The Makefile has about a dozen sets of defaults for a variety of platforms. Pick the one closest to your setup, uncomment it (and change it if needed). Then you don't have to enter these on the command line. My point is that you may want to remove most examples and replace them with sensible de

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Andi Vajda
On Tue, 18 May 2010, Christian Heimes wrote: Setup = I'm running the tests on an Ubuntu 10.04 X86_64 box with Python 2.6.5, Sun Java 1.6.0_20, GCC 4.4.3 and patched setuptools 0.6c11 (all 64bit). JCC: $ svn co http://svn.apache.org/repos/asf/lucene/pylucene/branches/branch_3x/jcc jcc_3x

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-18 Thread Christian Heimes
Andi Vajda wrote: On Linux, there's got to be a way to make this work but I haven't found how yet. I seem to be having trouble with linking to the Python Type objects. On Windows, I expect this to be even more difficult. Adding a call to dlopen("_lucene.so", RTLD_NOW | RTLD_GLOBAL) solves the p

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-17 Thread Andi Vajda
On Sun, 16 May 2010, Andi Vajda wrote: On Sun, 16 May 2010, Andi Vajda wrote: On Sun, 16 May 2010, Andi Vajda wrote: On Linux, there's got to be a way to make this work but I haven't found how yet. I seem to be having trouble with linking to the Python Type objects. On Windows, I expect

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-16 Thread Andi Vajda
On Sun, 16 May 2010, Andi Vajda wrote: On Sun, 16 May 2010, Andi Vajda wrote: On Linux, there's got to be a way to make this work but I haven't found how yet. I seem to be having trouble with linking to the Python Type objects. On Windows, I expect this to be even more difficult. Adding a

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-16 Thread Andi Vajda
On Sun, 16 May 2010, Andi Vajda wrote: On Linux, there's got to be a way to make this work but I haven't found how yet. I seem to be having trouble with linking to the Python Type objects. On Windows, I expect this to be even more difficult. Adding a call to dlopen("_lucene.so", RTLD_NOW | R

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-16 Thread Andi Vajda
On Thu, 13 May 2010, Andi Vajda wrote: On Fri, 14 May 2010, Christian Heimes wrote: Thanks for the suggestion, Andi! I'll try your suggestion on Monday. I hope it's sufficient to create a working version of lucene + bobo-browse in order to provide my co-worker Julian a foundation for his wor

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-13 Thread Andi Vajda
On Fri, 14 May 2010, Christian Heimes wrote: Am 13.05.2010 20:27, schrieb Andi Vajda: Here is an idea that I think should work but I couldn't test it because bobo is built from maven and pylucene isn't. Basically, the idea is that you must be really careful in not having Lucene classes come

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-13 Thread Christian Heimes
Am 13.05.2010 20:27, schrieb Andi Vajda: Here is an idea that I think should work but I couldn't test it because bobo is built from maven and pylucene isn't. Basically, the idea is that you must be really careful in not having Lucene classes come from two or more different places: 1. build py

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-13 Thread Andi Vajda
On Wed, 12 May 2010, Andi Vajda wrote: Christian Heimes, Dirk Rothe, and I have jcc-wrapped bobo-browse (http://code.google.com/p/bobo-browse/) in order to add faceted search capabilities to PyLucene. However, the two modules don't play well together, as wrappers from PyLucene cannot be used

Re: Problems passing PyLucene objects to jcc-wrapped bobo-browse api

2010-05-12 Thread Andi Vajda
On Wed, 12 May 2010, Julian Maibaum wrote: Christian Heimes, Dirk Rothe, and I have jcc-wrapped bobo-browse (http://code.google.com/p/bobo-browse/) in order to add faceted search capabilities to PyLucene. However, the two modules don't play well together, as wrappers from PyLucene cannot be u