Re: real reason for java.lang.NoClassDefFoundError ?

2011-03-09 Thread Andi Vajda
On Wed, 9 Mar 2011, Anton Korosov wrote: I'm trying to use BEAM/Visat software in Python. It is a large project with 100 JARs. I try to 'convert' these JARs into Python specifying each after --jar option: python -m jcc.__init__ \ --python testbeam \ --jar

Re: real reason for java.lang.NoClassDefFoundError ?

2011-03-10 Thread Andi Vajda
On Mar 10, 2011, at 11:23, Anton Korosov anton.koro...@nersc.no wrote: Thank you very much, Andi, for the prompt reply! Can I torture you with questions a bit more? Now I tried to build it the following way: python -m jcc.__init__ \ --python testjava \ --build \ --install \ --jar

Re: issue with automatic iterable detection?

2011-03-25 Thread Andi Vajda
On Mon, 7 Mar 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Probably an array being used as a type parameter ? Like this? public ArrayListint[] state; Or public class foo2 implements Iteratorint[]{ Or public int[] next() { Although rigging up your

building Lucene from sources without Solr sources from svn ?

2011-03-27 Thread Andi Vajda
Hi, It seems that at this time, the HEAD of branch_3x can no longer be conveniently checked out with Lucene sources only. If I check out http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/lucene I'm not getting the common-build.xml file from above that the Lucene one depends

Re: [VOTE] Release PyLucene 3.1.0

2011-04-06 Thread Andi Vajda
Hi Bill, The QueryParser class changed a bit. More overloads were introduced on the Lucene side. You probably have a Python 'subclass' of QueryParser that needs a bit of work to adapt to the changes. Look at the new version in

Re: [VOTE] Release PyLucene 3.1.0

2011-04-06 Thread Andi Vajda
On Wed, 6 Apr 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Hi Bill, The QueryParser class changed a bit. More overloads were introduced on the Lucene side. You probably have a Python 'subclass' of QueryParser that needs a bit of work to adapt to the changes. Thanks

Re: Indexing Non-Textual Data

2011-04-06 Thread Andi Vajda
Hi, On Wed, 6 Apr 2011, Chris Spencer wrote: I'm new to PyLucene, so forgive me if this is a newbie question. I have a dataset composed of several thousand lists of 128 integer features, each list associated with a class label. Would it be possible to use Lucene as a classifier, by indexing

Re: [VOTE] Release PyLucene 3.1.0

2011-04-06 Thread Andi Vajda
On Wed, 6 Apr 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Unless I'm missing something here, you've got two options before you break your users: 1. fix your code before you ship it to them Unfortunately, the code is out there for building, and the instructions, also

Re: [VOTE] Release PyLucene 3.1.0

2011-04-06 Thread Andi Vajda
On Wed, 6 Apr 2011, Michael McCandless wrote: On Wed, Apr 6, 2011 at 6:38 PM, Andi Vajda va...@apache.org wrote: On Wed, 6 Apr 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Unless I'm missing something here, you've got two options before you break your users:  1. fix your

Re: [VOTE] Release PyLucene 3.1.0

2011-04-07 Thread Andi Vajda
On Sat, 2 Apr 2011, Andi Vajda wrote: The PyLucene 3.1.0-1 release closely tracking the recent release of Lucene Java 3.1.0 is ready. A release candidate is available from: http://people.apache.org/~vajda/staging_area/ A list of changes in this release can be seen at: http://svn.apache.org

Re: [ANNOUNCE] Apache PyLucene 3.1.0

2011-04-14 Thread Andi Vajda
. A truly awesome project. On Thu, 7 Apr 2011 20:02:22 -0700 (PDT), Andi Vajda va...@apache.org wrote: I am pleased to announce the availability of Apache PyLucene 3.1.0. Apache PyLucene, a subproject of Apache Lucene, is a Python extension for accessing Apache Lucene Core. Its goal

Re: failure of some PyLucene tests on windows OS

2011-04-14 Thread Andi Vajda
On Apr 14, 2011, at 2:22, Thomas Koch k...@orbiteam.de wrote: Well, sure, not running the code that breaks solves the problem. But can you then run the tests multiple times ? [Thomas Koch] note that previously closeStore() was not called, but now when calling it the test_PyLucene runs OK.

RE: failure of some PyLucene tests on windows OS

2011-04-15 Thread Andi Vajda
On Fri, 15 Apr 2011, Thomas Koch wrote: I'd expect anyone running on Windows to see these test failures. Andi.. So what do you think about this issue - can we ignore this or claim it's a windows bug or hope that 'just' the test code is wrong? Here is what I think: I think that there is a

Re: Excluding inner classes is broken

2011-05-27 Thread Andi Vajda
On Thu, 12 May 2011, Christian Heimes wrote: Am 12.05.2011 21:10, schrieb Andi Vajda: Indeed. Thank you for patch. You are welcome! How's yesterday's issue's patch doing ? Is it reliable enough ? So far the patch is reliable and has improved the stability a lot. I haven't seen a single

Re: [VOTE] Lucene/Solr release 3.2 (take 2)

2011-06-01 Thread Andi Vajda
+1 I checked out Lucene sources from the lucene_solr_3_2 branch, built PyLucene from them and all tests passed. Thank you for having fixed the bug that prevented a lucene-only checkout from building (LUCENE-3160, I believe) ! Andi.. On Mon, 30 May 2011, Robert Muir wrote: Please vote

Re: Welcome Martijn van Groningen as Lucene/Solr committer

2011-06-01 Thread Andi Vajda
Welcome Martijn ! Andi.. On Wed, 1 Jun 2011, Michael McCandless wrote: The Lucene PMC has voted to add Martijn van Groningen as a Lucene/Solr committer. The traditional initiation ritual is to introduce yourself with a brief bio of how it is you came to join us :) Plus, once your account

Re: Welcome Erick Erickson as Lucene/Solr committer

2011-06-01 Thread Andi Vajda
And welcome Erick ! Andi.. On Wed, 1 Jun 2011, Robert Muir wrote: I'm pleased to announce that the Lucene PMC has voted for Erick Erickson as a committer. Erick, its tradition that you introduce yourself with a brief bio. Congratulations!

Re: Hardcoded java paths in shared objects [was:Re: Building is too difficult and release of a first pre-built egg]

2011-06-02 Thread Andi Vajda
On Jun 2, 2011, at 3:10, Philippe Ombredanne pombreda...@gmail.com wrote: On 2011-06-01 20:54, Roman Chyla wrote: Note that the location of the java that was used for the project built will be hardcoded inside the dynamic library, but I plan to change the header and set a few standard paths

Solr and Python

2011-06-02 Thread Andi Vajda
As I was responding on this list to Yonik yesterday about how PyLucene couldn't really make use of the HTTP side of the Lucene/Solr project (in the [VOTE] Lucene/Solr release 3.2 (take 2) thread) I thought to myself someone, somewhere is going to do this, though. Enter the montysolr project

Re: JCC usage failure

2011-06-03 Thread Andi Vajda
On Jun 3, 2011, at 1:21, Petrus Hyvönen petrus.hyvo...@gmail.com wrote: Hi, I am trying to use JCC to wrap a java library (orekit.org), and have successfully done so on the mac platform. As I also use windows I try to do the same there. JCC compiles fine on both platforms (using

Re: Solr and Python

2011-06-04 Thread Andi Vajda
to me. Andi.. Mike McCandless http://blog.mikemccandless.com On Thu, Jun 2, 2011 at 6:43 PM, Andi Vajda va...@osafoundation.org wrote: As I was responding on this list to Yonik yesterday about how PyLucene couldn't really make use of the HTTP side of the Lucene/Solr project

Re: JCC usage failure

2011-06-09 Thread Andi Vajda
Hi Petrus, On Thu, 9 Jun 2011, Petrus Hyvönen wrote: Thank you for the support, Finally I manage to get it working by reserving some words, and minimizing the number of wrapped methods by just including those that I specifically need: python -m jcc --jar orekit-5.0.jar --include

Re: [VOTE] release 3.3

2011-06-24 Thread Andi Vajda
+1 I built PyLucene from the Lucene 3.3 sources, fixed a bug due to FieldComparator becoming generic and all tests passed. Andi.. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail:

Re: calling Python from Java fails...

2011-06-29 Thread Andi Vajda
On Jun 29, 2011, at 16:43, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: By the way, you might want to add a paragraph in that section about adding the [-framework, Python] flags for building JCC on OS X. I tripped over that again. If you send a paragraph

Re: setuptools not really setuptools on Ubuntu

2011-06-29 Thread Andi Vajda
On Jun 29, 2011, at 18:04, Bill Janssen jans...@parc.com wrote: I hit another gotcha building shared on Ubuntu. I thought I had setuptools installed. When I built JCC, I got no error message about patch 43, and the config.py said shared. But the library that got built was libjcc.a, not

Re: calling a Python function from Java?

2011-06-29 Thread Andi Vajda
Put everything into a class and call all the python stuff from there. Andi.. On Jun 29, 2011, at 18:18, Bill Janssen jans...@parc.com wrote: I'm building a Java wrapper for the Python regex module, and I'd like to be able to call the module function escape from Java. It takes a string and

Re: setuptools not really setuptools on Ubuntu

2011-06-29 Thread Andi Vajda
Thank you for the details. Andi.. On Jun 29, 2011, at 19:37, Bill Janssen jans...@parc.com wrote: Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: Sigh. The setuptools story is getting worse. I wonder how the 'distribute' project is doing... It's the solution

Re: calling a Python function from Java?

2011-06-29 Thread Andi Vajda
On Jun 29, 2011, at 22:06, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: Put everything into a class and call all the python stuff from there. I'd like to make the method on the Java class be static, so I'd like that method to create an instance and call

Re: setuptools not really setuptools on Ubuntu

2011-06-29 Thread Andi Vajda
On Jun 29, 2011, at 22:17, Christian Heimes li...@cheimes.de wrote: Am 29.06.2011 18:13, schrieb Andi Vajda: Sigh. The setuptools story is getting worse. I wonder how the 'distribute' project is doing... It's the solution I used for the Python 3.1 jcc port I did last summer. In particular

Re: [VOTE] Release PyLucene 3.3.0

2011-07-18 Thread Andi Vajda
On Sun, 3 Jul 2011, Christian Heimes wrote: Am 03.07.2011 18:17, schrieb Andi Vajda: What kind of errors ? So I added the grouping module to the PyLucene branch_3x build and it just built (tm). I even committed the change to the build (rev 1142455) but I didn't check that the grouping module

Re: PyLucene, multiprocessing, high thread count

2011-07-18 Thread Andi Vajda
to it, and not based on the totality of all resources available on the shared machine... Ok, then using threads instead of subprocesses is your best bet. Andi.. Andi.. Himanshu On Fri, Jul 15, 2011 at 9:47 AM, Christian Heimes li...@cheimes.de wrote: Am 15.07.2011 10:10, schrieb Andi Vajda

Re: [VOTE] Release PyLucene 3.3 (rc2)

2011-07-21 Thread Andi Vajda
\Python26\lib\platform.pyc # c:\Devel\Python26\lib\string.pyc matches c:\Devel\Python26\lib\string.py import string # precompiled from c:\Devel\Python26\lib\string.pyc import strop # builtin import itertools # builtin make: *** [compile] Error 5 -Original Message- From: Andi Vajda [mailto:va

[VOTE] Release PyLucene 3.3 (rc3)

2011-07-21 Thread Andi Vajda
A problem was found with rc2. Please, vote on rc3, thanks :-) The Apache PyLucene 3.3-3 release closely tracking the recent release of Apache Lucene Java 3.3 is ready. A release candidate is available from: http://people.apache.org/~vajda/staging_area/ This new release candidate fixes an

Re: JCC CompileError -- incorrect generic parameter detection

2011-07-29 Thread Andi Vajda
Hi Lukasz, Thank you very much for the detailed bug report and fix. If the gentyref library has Apache compatible licensing, I could use it for JCC. If the bug can be worked around without introducing this dependency, that would be even better. For example, is there a piece of gentyref

Re: JCC CompileError -- incorrect generic parameter detection

2011-08-01 Thread Andi Vajda
Hi Lukasz, On Sun, 31 Jul 2011, ?ukasz Jancewicz wrote: On Fri, Jul 29, 2011 at 17:09, Andi Vajda va...@apache.org wrote: For example, is there a piece of gentyref code that I could 'borrow' (with attribution of course) and include that in the JCC sources to fix this particular problem

Re: JCC CompileError -- incorrect generic parameter detection

2011-08-04 Thread Andi Vajda
Hi Lukasz, On Mon, 1 Aug 2011, Andi Vajda wrote: So I did a custom build of JCC with that gentyref class wrapped and it does fix the problem you encountered but it then no longer compiles Lucene :-( I get this detailed error message from gentyref: jcc.cpp.JavaError

Re: [VOTE]: Accept Kuromoji code donation to Apache Lucene

2011-08-09 Thread Andi Vajda
+1 Andi.. On Aug 9, 2011, at 22:40, Mark Miller markrmil...@gmail.com wrote: +1 On Aug 8, 2011, at 4:22 AM, Simon Willnauer wrote: We are currently working on a code grant for the Kuromoji Japanese morphological analyzer in LUCENE-3305 [1]. for the IP clearance we need to vote to

Re: JCC crash when building

2011-09-07 Thread Andi Vajda
I'm sorry, I'm not ignoring you, but since I don't run Windows much and mingw not at all, I can't help you. It is very likely you've got some DLLs mixed up indeed. Maybe someone with mingw experience here can chime in ? Andi.. On Tue, 6 Sep 2011, Petrus Hyvönen wrote: Hi again, python

Re: Fwd: [Orekit Developers] Distribution of orekit-python egg

2011-09-09 Thread Andi Vajda
On Fri, 9 Sep 2011, Petrus Hyvönen wrote: As this discussion could be of potential interest of others who makes python modules using jcc I cross post it. I am really not experienced in the licensing issues of open source, closed source etc. A JCC generated external java library .egg, do

Re: [VOTE] Release Lucene/Solr 3.4.0, RC1

2011-09-11 Thread Andi Vajda
I prepared a PyLucene 3.4 release candidate from the Lucene 3.4 branch. All tests pass. +1 to release Lucene Solr 3.4. Andi.. On Sep 9, 2011, at 9:06, Michael McCandless luc...@mikemccandless.com wrote: Please vote to release the RC1 artifacts at:

Re: jcc dll loading error

2012-05-26 Thread Andi Vajda
On May 25, 2012, at 22:57, Mark Finkelstein finkel.m...@gmail.com wrote: Hello everyone! I hope this is a relevant question. I was trying to use jcc to create a wrapper for a different project's library but when I try to run python -m jcc.main I get the error C:\Python26\python.exe: DLL

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 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() jcc.JCCEnv object at 0x1004100d8 foo.initVM(.) jcc.JCCEnv object

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: 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() jcc.JCCEnv object

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

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: 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

mingw /implib:foo.lib equivalent ?

2010-05-24 Thread Andi Vajda
Hi Bill, Would you know what the equivalent mingw gcc flag for MSVC's /implib:foo.lib flag is ? This overrides the default name and location that the linker uses to produce a DLLs' import library. I added some linking tricks on Windows and Linux for supporting the new --import

Re: [VOTE] Release PyLucene 2.9.3-1 and 3.0.2-1

2010-06-25 Thread Andi Vajda
On Thu, 24 Jun 2010, Michael McCandless wrote: +1, again. Thank you Mike and Christian for your votes. We are still missing one PMC vote in order to release these artifacts. Grant ? Andi.. Mike On Wed, Jun 23, 2010 at 11:26 AM, Andi Vajda va...@apache.org wrote: On Tue, 22 Jun 2010

Re: pylucene/trunk fails to install

2010-06-30 Thread Andi Vajda
On Jun 30, 2010, at 21:51, Helmut Jarausch jarau...@igpm.rwth- aachen.de wrote: Hi, Trying to install pylucene/trunk fails due to missing folders - lucene-java-3.1/contrib/analyzers - lucene-java-3.1/contrib/icu Don't use trunk, it's become a lot more unstable as per the lucene java

Re: API changes between 2.9.2 and 2.9.3

2010-07-20 Thread Andi Vajda
On Jul 20, 2010, at 18:14, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: On Jul 20, 2010, at 4:40, Bill Janssen jans...@parc.com wrote: Looks like the combination of JCC 2.6 and Lucene 2.9.3 have made some significant API changes. This is what I get with 2.9.3

RE: API changes between 2.9.2 and 2.9.3

2010-07-20 Thread Andi Vajda
On Tue, 20 Jul 2010, Thomas Koch wrote: Porting your stuff to Lucene 3.0 is recommended... [Thomas Koch] That's what I'm supposed to do next: port our PyLucene code to some up-to-date release - our codebase is still on PyLucene 2.6 and I expect it to break with the 3.x release ... With that

Re: setAllowLeadingWildcard and PythonMultiFieldQueryParser

2010-08-17 Thread Andi Vajda
On Tue, 17 Aug 2010, Daniel Rech wrote: I'd like to use the setAllowLeadingWildcard method with PythonMultiFieldQueryParser but I always get a lucene.JavaError: org.apache.lucene.queryParser.ParseException: Cannot parse '*a': '*' or '?' not allowed as first character in WildcardQuery It

Re: Lucene 4.0 Beta

2012-01-11 Thread Andi Vajda
On Jan 11, 2012, at 12:03, Robert Muir rcm...@gmail.com wrote: On Wed, Jan 11, 2012 at 2:57 PM, Yonik Seeley yo...@lucidimagination.com wrote: If someone does want to work on a large 5.0 feature *right now* as opposed to working on 4.0, then they can create a branch and merge that later.

Re: Typecasting in JCC (i think..)

2012-01-31 Thread Andi Vajda
On Tue, 31 Jan 2012, Petrus Hyvönen wrote: Is there a way of specifying which java SDK to link to? On my windows 7 machine it wants to use Java SDK 1.7 but I would like to keep it at SDK 1.6? Is this possible? When you build jcc, you choose which JDK you compile with and link to via the

Re: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-01 Thread Andi Vajda
Hi Thomas, On Wed, 1 Feb 2012, Thomas Koch wrote: OK, I found a solution (obviously not the best one...): lucene.Set is representing a java.util *interface* SetE which of course cannot be instantiated. HashSet is an implementing class, and can be instantiated. You can add elements via the

Re: Changes to enable easy_install of packages using JCC

2012-02-01 Thread Andi Vajda
Hello, Comments and replies inline... On Wed, 1 Feb 2012, Chris Wilson wrote: I have been working on integrating Apache Tika (in Java) with our open source intranet application (in Python/Django) using JCC, as described here:

Re: Changes to enable easy_install of packages using JCC

2012-02-02 Thread Andi Vajda
On Thu, 2 Feb 2012, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: I think the right thing to do is to 1. re-write the current jcc setup.py to use distutils2, and then Is distutils2 supported on older Python 2.x versions like 2.4, 2.5 ? I'd be happy to drop support for older

Re: AW: AW: Setting Stopword Set in PyLucene (or using Set in general)

2012-02-23 Thread Andi Vajda
PythonSet whereas the one implemented in Python - and wraps the Java pendant - is called JavaSet, but that's just a comment and depends on the point of view) -Ursprüngliche Nachricht- Von: Andi Vajda [mailto:va...@apache.org] Gesendet: Mittwoch, 1. Februar 2012 19:08 An: pylucene

Re: do the Java and Python garbage collectors talk to each other, with JCC?

2010-08-25 Thread Andi Vajda
On Wed, 25 Aug 2010, Bill Janssen wrote: Sure, but tell that to the Lucene folks. They're the ones starting a new thread here. Of course, now and then one needs to start a new thread. I forwarded your question to Mike McCandless (who is also a subscriber to this list) to see if he had

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-30 Thread Andi Vajda
. Regards, Vin On Sun, Aug 29, 2010 at 12:21 PM, Andi Vajda va...@apache.org wrote: On Sun, 29 Aug 2010, technology inspired wrote: I am using PyLucene 3.0.2 on Ubuntu 10.04 with Python 2.6.5 and Sun Java 1.6. I am written an example script to build

Re: Issues while connecting PyLucene code to Apache WSGI interface

2010-08-31 Thread Andi Vajda
On Aug 31, 2010, at 7:04, TJ Ninneman t...@twopeasinabucket.com wrote: Since initVM() must be called from the main thread, the call to attachCurrentThread() listed above is not necessary. Thanks, I'll remove that line. This should be called once per thread. Calling it for every request

Re: discussion about release frequency.

2010-09-18 Thread Andi Vajda
On Sat, 18 Sep 2010, Robert Muir wrote: Just my opinion: (personally i do not use maven, nor understand it). If maven support is beneficial to bringing more devs to lucene, we should consider what we can do. But at the same time, perhaps Makefiles would bring more devs, too. My problem with

Re: Segfault during IndexWriter.addDocument()

2010-09-27 Thread Andi Vajda
On Mon, 27 Sep 2010, Christian Heimes wrote: Am 27.09.2010 18:10, schrieb Christian Heimes: I'm trying to port our application to PyLucene 3.x. Most changes were trivial but now I've hit a dead end. The test suite always seg faults when it tries to add a document to the index. Our subclass

Re: PatternAnalyzer not implemented?

2010-10-01 Thread Andi Vajda
On Fri, 1 Oct 2010, Roman Chyla wrote: I tried to use the PatternAnalyzer, but am getting NotImplementedError - in case it is not available, shall I rather use PythonAnalyzer and implement the regex pattern analyzer with that? using version: 2.9.3 In [44]: import lucene In [45]: import

Re: Unresolved external symbol errors when linking example native c++ code that uses jcc

2010-10-21 Thread Andi Vajda
On Thu, 21 Oct 2010, Imre András wrote: JCCEnv.h has the following: ... #ifdef _jcc_shared _DLL_IMPORT extern JCCEnv *env; _DLL_IMPORT extern DWORD VM_ENV; #else _DLL_EXPORT extern JCCEnv *env; _DLL_EXPORT extern DWORD VM_ENV; #endif ... I suspect here is the root of my linker problem. Where

Re: Unresolved external symbol errors when linking example native c++ code that uses jcc

2010-10-22 Thread Andi Vajda
On Fri, 22 Oct 2010, Imre András wrote: Ok, thanks. After resolving this I got the following error: jcc.cpp(294) : error C2039: 'fromJString' : is not a member of 'JCCEnv' As I see this method is present in JCCEnv.h, but an #ifdef PYTHON directive prevents to make it available for the tier

Re: inconsistency/performance trap of empty terms

2010-10-28 Thread Andi Vajda
On Thu, 28 Oct 2010, Robert Muir wrote: On Thu, Oct 28, 2010 at 8:35 PM, karl.wri...@nokia.com wrote: In database queries, it is often useful to treat an empty value specially, and be able to search explicitly for records that have (for instance) no field X, or no value for field X.  I

Re: inconsistency/performance trap of empty terms

2010-10-29 Thread Andi Vajda
On Oct 28, 2010, at 22:32, Robert Muir rcm...@gmail.com wrote: On Thu, Oct 28, 2010 at 10:28 PM, Andi Vajda va...@osafoundation.org wrote: I've used this in a URL index. I needed to be able to distinguish between searching URLs that had, say, no path, from searching URLs without

[VOTE] Release PyLucene 3.4.0

2011-09-15 Thread Andi Vajda
The PyLucene 3.4.0-1 release closely tracking the recent release of Apache Lucene 3.4.0 is ready. A release candidate is available from: http://people.apache.org/~vajda/staging_area/ A list of changes in this release can be seen at:

Re: SynonymAnalyzer(s) in PyLucene34

2011-10-27 Thread Andi Vajda
Hi Mike, On Thu, 27 Oct 2011, Michael McCandless wrote: On Thu, Oct 27, 2011 at 9:09 AM, Andi Vajda va...@apache.org wrote: So, I downloaded the new version of the samples, hoping to find a new version of the wordnet index. But first, following instructions in README, running 'ant test

Re: NameError: name '_jcc' is not defined

2011-11-03 Thread Andi Vajda
.. On Thu, Nov 3, 2011 at 1:05 AM, Andi Vajda va...@apache.org wrote: On Nov 2, 2011, at 17:14, A. Heifets a...@cs.toronto.edu wrote: Hello PyLuceners, The PyLucene make command is failing with the following error: Traceback (most recent call last): File /usr/lib64/python2.4/site-packages/jcc

Re: can't export ImageIO?

2011-11-03 Thread Andi Vajda
On Thu, 3 Nov 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: On Nov 2, 2011, at 10:02, Bill Janssen jans...@parc.com wrote: I'm trying to export the javax.imageio.ImageIO class from a Python module. I use the following command: $ sudo python -m jcc.__main__ --jar

Re: can't export ImageIO?

2011-11-03 Thread Andi Vajda
On Thu, 3 Nov 2011, Bill Janssen wrote: * All classes from either --include jars or the JRE, which already selected classes depend on, that come from packages included with --package No. If you --include blah.jar and its package(s) are not listed, then classes it contains are not

Re: set PYTHONPATH programatically from Java?

2011-11-14 Thread Andi Vajda
knowledge might be sufficient for this :)) Yes, adding an 'eval' method on PythonVM, like the 'instantiate' method, would make sense. A patch is welcome ! Andi.. roman On Mon, Nov 14, 2011 at 1:12 PM, Roman Chyla roman.ch...@gmail.com wrote: On Mon, Nov 14, 2011 at 4:25 AM, Andi Vajda va

Re: buildbots for PyLucene?

2011-11-29 Thread Andi Vajda
On Nov 29, 2011, at 15:18, Bill Janssen jans...@parc.com wrote: I've once again spent an hour building PyLucene, which gives me some sympathy for issue 10: https://issues.apache.org/jira/browse/PYLUCENE-10 I was thinking about how to address this... One thing I've found useful at PARC

Re: [VOTE] Release PyLucene 3.5.0

2011-12-07 Thread Andi Vajda
On Wed, 7 Dec 2011, Christian Heimes wrote: Am 07.12.2011 03:39, schrieb Andi Vajda: The PyLucene 3.5.0-1 release closely tracking the recent release of Apache Lucene 3.5.0 is ready. A release candidate is available from: http://people.apache.org/~vajda/staging_area/ A list of changes

Re: [VOTE] Release PyLucene 3.5.0

2011-12-07 Thread Andi Vajda
On Wed, 7 Dec 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: A list of Lucene Java changes can be seen at: http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_5/lucene/CHANGES.txt ``The requested URL /repos/asf/lucene/dev/tags/lucene_solr_3_5/lucene/CHANGES.txt

Re: [VOTE] Release PyLucene 3.5.0

2011-12-07 Thread Andi Vajda
On Wed, 7 Dec 2011, Bill Janssen wrote: Here's an issue with the new IndexPolicy class: compile: [mkdir] Created dir: /private/tmp/pylucene-3.5.0-1/build/classes [javac] /private/tmp/pylucene-3.5.0-1/extensions.xml:19: warning: 'includeantruntime' was not set, defaulting to

Re: [VOTE] Release PyLucene 3.5.0

2011-12-08 Thread Andi Vajda
On Thu, 8 Dec 2011, Robert Muir wrote: On Wed, Dec 7, 2011 at 8:22 PM, Andi Vajda va...@apache.org wrote: JavaError: java.lang.UnsupportedOperationException: This JRE does not have support for Thai segmentation    Java stacktrace: java.lang.UnsupportedOperationException: This JRE does

[ANNOUNCE] Apache PyLucene 3.5.0

2011-12-13 Thread Andi Vajda
I am pleased to announce the availability of Apache PyLucene 3.5.0. Apache PyLucene, a subproject of Apache Lucene, is a Python extension for accessing Apache Lucene Core. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API compatible with

Re: JCC access to a nested iteration class

2012-08-17 Thread Andi Vajda
On Fri, 17 Aug 2012, csrickle wrote: ... This is an Apache Accumulo interface. The particular class containing the nested class, analogous to App.Embedded.hello2(), is TabletServerBatchReaderIterator:

Re: jar error while trying to build

2012-09-19 Thread Andi Vajda
idea what could be causing this? Thanks a lot, Mohamed. On Tue, Sep 18, 2012 at 6:39 PM, Andi Vajda va...@apache.org wrote: On Tue, 18 Sep 2012, Mohamed Lrhazi wrote: Hello, I am trying to build pylucene on a redhat ent 6.1. the make fails with an error pasted bellow. Any hints

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-28 Thread Andi Vajda
On Mon, 22 Nov 2010, Bill Janssen wrote: Bill Janssen jans...@parc.com wrote: Using depends.exe on _jcc.pyd says that the missing file is Python27.dll, which seems odd. Where should I find that? And there is a python27.dll in C:\Windows\system32\. So, not sure what the problem is. I

Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7

2010-11-29 Thread Andi Vajda
On Mon, 29 Nov 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: On Nov 29, 2010, at 9:45, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: I just tried this myself By this, do you mean 64-bit Windows 7, or Python 2.7? Both. 64 bit Windows 7

Re: [VOTE] [Take 3] Release PyLucene 2.9.4-1 and 3.0.3-1

2010-12-16 Thread Andi Vajda
On Sun, 12 Dec 2010, Andi Vajda wrote: A patch that improves the finding of jni.h on Mac OS X was integrated. It made it worth blocking this release and preparing new release artifacts. No one voted on the [Take 2] artifacts and I hope this is not inconveniencing anyone. I also hope

Re: pylucene branch_3x fails to build

2011-01-11 Thread Andi Vajda
On Tue, 11 Jan 2011, Helmut Jarausch wrote: First, the patch jcc/jcc/patches/patch.43.0.6c11 doesn't quite work for Python2.7.1. I have attached a modified patch. More serious is the following error during make (I'm using sun-jdk-1.6.0.23) ant -f extensions.xml -Dlucene.dir=lucene-java-3.x

Re: call python from java - what strategy do you use?

2011-01-11 Thread Andi Vajda
, Jan 11, 2011 at 8:13 PM, Andi Vajda va...@apache.org wrote:  Hi Roman, On Tue, 11 Jan 2011, Roman Chyla wrote: I have recently wrapped solr inside jetty with JCC (we need to access very big result sets quickly, via JNI, but also keep solr running as normal) and was wondering what strategies do

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
curious. Please see one remaining question below. On Tue, Jan 11, 2011 at 10:37 PM, Andi Vajda va...@apache.org wrote: On Tue, 11 Jan 2011, Roman Chyla wrote: Hi Andy, This is much more than I could have hoped! Just yesterday, I was looking for ways how to embed Python VM in Jetty

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
On Wed, 12 Jan 2011, Roman Chyla wrote: And if in the python, I will do: import lucene import lucene.initVM(lucene.CLASSPATH) Will it work in this case? Giving access to the java classes from inside python. Or I will have to forget pylucene, and prepare some extra java classes? (the jcc in

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
Hi Roman, On Wed, 12 Jan 2011, Roman Chyla wrote: Thanks for the help, now I was able to run the java and loaded PythonVM. I then built the python egg, after a bit of fiddling with parameters, it seems ok. I can import the jcc wrapped python class and call it: In [1]: from solrpie_java

Re: call python from java - what strategy do you use?

2011-01-12 Thread Andi Vajda
, Andi Vajda va...@apache.org wrote: On Wed, 12 Jan 2011, Roman Chyla wrote: Hi Andi, all, I tried to implement the PythonVM wrapping on Mac 10.6, with JDK 1.6.22, jcc is freshly built, in shared mode, v. 2.6. The python is the standard Python distributed with MacOsX When I try to run the java

Re: Using IndexWriter.commit(MapString,String commitUserData) in pylucene

2011-01-19 Thread Andi Vajda
On Wed, 19 Jan 2011, Eric Hall wrote: I'd like to store some index metadata using IndexWriter.commit(MapString,String commitUserData) I've set up a python dict with string to string mappings, but if I use that I get an InvalidArgsError. Is there a different python

Re: pylucene branch_3x fails to build

2011-02-03 Thread Andi Vajda
On Thu, 3 Feb 2011, Wylie, Brian wrote: Mistype (exceptions.xml) - (extensions.xml) This is about trunk or 3.x ? Not the same thing, trunk is highly unstable and PyLucene is not following it too closely. What used to be trunk at the Lucene project is now the so-called 3.x branch,

Re: pylucene branch_3x fails to build

2011-02-03 Thread Andi Vajda
I just verified, at this moment, the HEAD of the 3.x branch http://svn.apache.org/repos/asf/lucene/pylucene/branches/branch_3x/ builds and passes all tests. Andi.. On Thu, 3 Feb 2011, Wylie, Brian wrote: Mistype (exceptions.xml) - (extensions.xml) On 2/3/11 11:29 AM, Wylie, Brian

Re: a Debian package of PyLucene 3 for Ubuntu 10.10 Maverick (AMD64) ?

2011-02-17 Thread Andi Vajda
On Feb 17, 2011, at 0:31, Valery Khamenya khame...@gmail.com wrote: Hi guys, I tried several times to install PyLucene 3 on Ubuntu 10.10 Maverick (AMD64). I have never succeeded with it (maybe 1 hour was never enough for it). Could someone, please, build a Debian package of PyLucene 3 for

Re: Test failures with pylucene-2.4.1-1

2011-02-25 Thread Andi Vajda
On Fri, 25 Feb 2011, tuxdna wrote: I built pylucene-2.4.1-1 on Fedora 14. ( https://tuxdna.wordpress.com/2011/02/25/pylucene-on-fedora-14/ ) When I did make test, I found test failures which I am pasting below: This looks like a version of jcc too new for this old a pylucene is used. Which

Re: issue with automatic iterable detection?

2011-03-03 Thread Andi Vajda
On Thu, 3 Mar 2011, Andi Vajda wrote: Indeed, this is why I put that assertion there :-) It's a bit of guesswork what all the possibilities are there. I'll add support for arrays there. Fix is checked into rev 1076883. Back to you, Bill. Thanks ! Andi.. Andi.. On Thu, 3 Mar 2011, Bill

Re: Using JCC / PyLucene with JEPP?

2011-03-04 Thread Andi Vajda
On Mar 4, 2011, at 9:40, Bill Janssen jans...@parc.com wrote: The number of patches to Tomcat make me uneasy. I was hoping to bundle all this into a .war file containing a servlet which would use it with an unmodified Tomcat. Does that seem possible? No. The PythonVM must be initialized

Re: issue with automatic iterable detection?

2011-03-07 Thread Andi Vajda
On Mon, 7 Mar 2011, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: Where does t_JArray get defined? I can't find it. I'm not sure there is one. If you can provide me with a piece of Java to reproduce this, I can fix it faster. I've narrowed this down to three iterator classes

Re: Compiling JCC as shared object

2012-03-28 Thread Andi Vajda
On Wed, 28 Mar 2012, Caleb Burns wrote: According to http://lucene.apache.org/pylucene/jcc/install#shared_mode_support_for_the_code--sharedcode_flag (or doc/jcc/documentation/install.html#shared from pylucene tarball), I can set the `--shared` flag in order to compile JCC as a shared object

Re: PyLucene use JCC shared object by default

2012-04-18 Thread Andi Vajda
into a jar file and generating C++/Python wrappers for it using JCC ? Andi.. On Tue, Apr 17, 2012 at 7:39 PM, Andi Vajda va...@apache.org wrote: Hi Caleb, On Tue, 17 Apr 2012, Caleb Burns wrote: I've finished the process at my organization of re-implementing SOLR's faceting

  1   2   3   4   5   6   7   8   9   10   >