Re: hello

2009-01-23 Thread Andi Vajda
On Fri, 23 Jan 2009, Michael McCandless wrote: Is anyone here? I am, I didn't know I was already subscribed :) Cool, this means the list is functional ! Maybe it's time to make the announcement on gene...@lucene.apache.org and the old OSAF pylucene-dev mailing list. I should get to this l

Re: hello

2009-01-23 Thread Andi Vajda
On Fri, 23 Jan 2009, Michael McCandless wrote: +1 too! yay Mike Grant Ingersoll wrote: +1 On Jan 23, 2009, at 4:46 PM, Andi Vajda wrote: On Fri, 23 Jan 2009, Michael McCandless wrote: Is anyone here? I am, I didn't know I was already subscribed :) Cool, this means the li

add new mailing list to listing

2009-01-23 Thread Andi Vajda
Hi Grant, Could you please add an entry for pylucene-dev@lucene.apache.org under the list of subproject mailing lists here: http://lucene.apache.org/mail.html Thanks ! Andi..

web site build out

2009-01-30 Thread Andi Vajda
I converted the PyLucene plain text docs to Forrest format and built out the PyLucene web site a bit. If you visit http://lucene.apache.org/pylucene and see bugs, typos or have feedback you would like to send in, please respond to the list. Thanks ! Andi..

Re: trying to build PyLucene off Lucene's trunk

2009-02-03 Thread Andi Vajda
On Tue, 3 Feb 2009, Michael McCandless wrote: I'm trying build PyLucene off of Lucene's current trunk, on OS X 10.5.6. So I first did "ant package-tgz" in a clean Lucene checkout, to get a tgz with all interesting JARS (side note: it'd be nice if JCC could get the JARs out of the tgz or zip f

Re: using PyLucene from Java

2009-02-03 Thread Andi Vajda
On Tue, 3 Feb 2009, Michael McCandless wrote: One quick question about PyLucene/JCC: is it "symmetric" at runtime, ie, my "main" could be in Java and I can init access to Python and then invoke Python sources? EG maybe I created a Python function for indexing a bunch of files, but the rest of

Re: Occasional SIGSEGV passing lists of ints to Java int[]s

2009-02-05 Thread Andi Vajda
On Thu, 5 Feb 2009, Aaron Lav wrote: On Thu, Feb 05, 2009 at 02:45:21PM -0500, Aaron Lav wrote: It seems like there's a bug which sometimes causes passing lists of ints to Java int[]s to generate a SIGSEGV. ... I've noticed that a call to the wrapped functions doesn't seem to be necessary to

Re: Occasional SIGSEGV passing lists of ints to Java int[]s

2009-02-06 Thread Andi Vajda
On Feb 6, 2009, at 10:07, Aaron Lav wrote: On Thu, Feb 05, 2009 at 02:45:21PM -0500, Aaron Lav wrote: (apologies for the broken threading. I don't seem to be getting email from this list: I've tried resubscribing.) Have you tried moving things around, like creating the arrays differen

Re: Occasional SIGSEGV passing lists of ints to Java int[]

2009-02-06 Thread Andi Vajda
On Fri, 6 Feb 2009, Aaron Lav wrote: Does it crash if you don't call initVM() ? No, the call to _testjcc.initVM(...) seems to be required to make it crash. There are two pieces to initVM(): - initVM() proper (defined in jcc.cpp) - initializing your classes The initVM() that is called f

Re: Occasional SIGSEGV passing lists of ints to Java int[]

2009-02-06 Thread Andi Vajda
On Feb 6, 2009, at 11:19, Aaron Lav wrote: On Fri, Feb 06, 2009 at 11:07:24AM -0800, Andi Vajda wrote: On Fri, 6 Feb 2009, Aaron Lav wrote: Does it crash if you don't call initVM() ? No, the call to _testjcc.initVM(...) seems to be required to make it crash. There are two piec

Re: Occasional SIGSEGV passing lists of ints to Java int[]

2009-02-06 Thread Andi Vajda
On Fri, 6 Feb 2009, Aaron Lav wrote: On Fri, Feb 06, 2009 at 11:50:14AM -0800, Andi Vajda wrote: Ok, so keeping these commented out, how much can you comment out of the actual initVM() defined in jcc.cpp until it no longer crashes ? Unfortunately, if I add Py_INCREF(Py_None); return

Re: JCC compile error on solaris - JArray.cpp

2009-02-10 Thread Andi Vajda
On Tue, 10 Feb 2009, Luc Bastiaenssen wrote: I can't compile JCC anymore on Solaris since the introduction of JCC 2.x Platform: Solaris 10 on Intel with Sun Studio C++ 12, Java 1.6 and Python 2.5. Command: CC=CC /usr/bin/python2.5 setup.py build running build running build_py copying jcc/c

Re: Makefile question

2009-02-12 Thread Andi Vajda
On Thu, 12 Feb 2009, Jacob Floyd wrote: Simple question regarding the Makefile: --- snippet --- $(REGEX_JAR): $(LUCENE_JAR) rm -f $(LUCENE)/contrib/regex/src/java/org/apache/lucene/search/regex/JakartaRegexpCapabilities.java rm -f $(LUCENE)/contrib/regex/src/java/org/apache/r

Re: Makefile question

2009-02-12 Thread Andi Vajda
On Thu, 12 Feb 2009, Andi Vajda wrote: On Thu, 12 Feb 2009, Jacob Floyd wrote: Simple question regarding the Makefile: --- snippet --- $(REGEX_JAR): $(LUCENE_JAR) rm -f $(LUCENE)/contrib/regex/src/java/org/apache/lucene/search/regex/JakartaRegexpCapabilities.java rm -f $(LUCENE)/contrib

Re: make test doesn't work before install

2009-02-13 Thread Andi Vajda
On Feb 13, 2009, at 8:27, Helmut Jarausch aachen.de> wrote: On a machine with an old (2 month old SVN) PyLucene / Java What operating system ? What versions of python, java ? installation I've built first jcc than PyLucene itself. Executing make test failed reproducibly with a segmentfau

Re: Makefile question

2009-02-13 Thread Andi Vajda
On Fri, 13 Feb 2009, Jacob Floyd wrote: My comments below. Andi Vajda wrote: ... These file depend on yet another thirdparty project, Apache Regex (?), and I didn't want to have a dependency on that. Given that Python has excellent regular expression support, I replaced these files w

preparing for a PyLucene release

2009-02-13 Thread Andi Vajda
Hi, Apart from the JIRA project (issue INFRA-1861) which seems stuck, the transition for PyLucene from OSAF to Apache is now complete. Historically, PyLucene has had official releases closely tracking Java Lucene's. At the moment, it doesn't appear that Java Lucene is preparing for a relea

Re: preparing for a PyLucene release

2009-02-13 Thread Andi Vajda
e you have a release candidate posted, then you should call for a vote; you should definitely encourage anyone & everyone to test/vote (not just PMC members). Mike Andi Vajda wrote: Hi, Apart from the JIRA project (issue INFRA-1861) which seems stuck, the transition for PyLucene fr

Re: Occasional SIGSEGV passing lists of ints to Java int[] - not JCC's fault

2009-02-16 Thread Andi Vajda
On Feb 16, 2009, at 11:13, Aaron Lav wrote: On Fri, Feb 06, 2009 at 07:58:31PM -0500, Aaron Lav wrote: I've also tried modifying the output testjcc.c so it doesn't contain the lines from INSTALL_TYPE(JObject,module) ... to '__install__(module);', and it still seems to crash. At this poin

Re: site-packages/lucene/*.jar files

2009-02-16 Thread Andi Vajda
On Feb 16, 2009, at 12:26, Jacob Floyd wrote: Hello, Now it's time for the next saga in my gentoo pylucene ebuild. Once I've compiled pylucene on gentoo (it works at last, hooray), it installs the following files: /usr /usr/share /usr/share/pylucene-2.4 /usr/share/pylucene-2.4/lib /usr/share/

Re: Replacing the Makefile

2009-02-17 Thread Andi Vajda
On Tue, 17 Feb 2009, Jacob Floyd wrote: Have you considered replacing the Makefile with a pure build.xml replacement? As the gentoo ebuild was not as readable as the gentoo devs would have liked, they had me write it so that I could use pyAntTasks ( http://www.rpstechnologies.net/PyAntTasks.htm

Re: Pylucene for python 3000

2009-02-18 Thread Andi Vajda
On Feb 18, 2009, at 8:22, Seid Mohammed wrote: Dear All Greetings Pylucen 2.4 has been working with python 2.5 for me, installed and configured with easy_install. python 3000 is out now and perfect for my unicode dependent project which python 2.5 didn't handle as so. is there any way to inte

Re: Passing value during Java object instantiation

2009-02-18 Thread Andi Vajda
On Wed, 18 Feb 2009, Charles A. Benson wrote: Hello, From my PyLucene code, I want to pass in a value when I instantiate my StopAnalyzer. In particular, I want to instantiate w/a file containing a list of stop words.. Everything I have tried so far is either kicked back by Python or Java. Is

Re: Windows binaries of JCC and PyLucene

2009-02-18 Thread Andi Vajda
On Wed, 18 Feb 2009, Christian Heimes wrote: Christian Heimes wrote: I'm looking for Windows binaries of JCC 2.1 and PyLucene 2.4. I tried to build the Windows binaries myself using Sun JDK 1.6.0u12 and MinGW32 but I had no luck. Good news everybody! Apparently the JCC sources are not compat

Re: Passing value during Java object instantiation

2009-02-18 Thread Andi Vajda
Sent again with hopefully not mangled formatting: On Wed, 18 Feb 2009, Charles A. Benson wrote: Hello, From my PyLucene code, I want to pass in a value when I instantiate my StopAnalyzer. In particular, I want to instantiate w/a file containing a list of stop words.. Everything I have tried

Re: trouble making PyLucene

2009-02-19 Thread Andi Vajda
On Feb 19, 2009, at 12:29, Dan Morrow wrote: Hi there, I'm having trouble running "make" against pylucene, and was hoping that someone has seen this problem. I was able to get into the "jcc" directory, and run the setup script. But then when I go back into the "pylucene" directory and

Re: JCC Install

2009-02-22 Thread Andi Vajda
On Fri, 20 Feb 2009, Jacob Floyd wrote: Here I am again. After talking with some of the gentoo devs, they suggested I modify the setup.py to include gentoo specifics and send it upstream. As it is, they don't like to have to specify all the lflags, and in fact it becomes troublesome, because we

Re: how to instantiate a Set?

2009-02-22 Thread Andi Vajda
On Sun, 22 Feb 2009, Bill Janssen wrote: I'm probably missing something incredibly obvious here... I'm trying to call MoreLikethis.setStopWords(Set words). I've got a list of stop words in Python, but I can't figure out how to turn that into a Java Set. I tried "lucene.HashSet(set(words)", "

Re: how to instantiate a Set?

2009-02-22 Thread Andi Vajda
On Sun, 22 Feb 2009, Bill Janssen wrote: I'm probably missing something incredibly obvious here... I'm trying to call MoreLikethis.setStopWords(Set words). I've got a list of stop words in Python, but I can't figure out how to turn that into a Java Set. I tried "lucene.HashSet(set(words)", "

Re: JCC Install

2009-02-23 Thread Andi Vajda
On Sun, 22 Feb 2009, Andi Vajda wrote: Thank you for the patch. This is the second time in a week that someone suggest the same thing: a variable to specify the JDK root (JAVA_HOME or somesuch). I'll take the ideas from both patches and incorporate that into JCC's setup.py. I ad

Re: how to instantiate a Set?

2009-02-23 Thread Andi Vajda
On Sun, 22 Feb 2009, Andi Vajda wrote: On Sun, 22 Feb 2009, Bill Janssen wrote: I'm probably missing something incredibly obvious here... I'm trying to call MoreLikethis.setStopWords(Set words). I've got a list of stop words in Python, but I can't figure out how to t

Re: how to instantiate a Set?

2009-02-23 Thread Andi Vajda
On Sun, 22 Feb 2009, Bill Janssen wrote: OK, I added JavaSet to my codebase. You can now use the one in the PyLucene's collections module: >>> from lucene.collections import JavaSet But still no joy -- I can now call mlt = MoreLikeThis(...) mlt.setStopWords(JavaSet(set(["foo", "b

Re: how to instantiate a Set?

2009-02-23 Thread Andi Vajda
On Feb 23, 2009, at 8:42, Bill Janssen wrote: a = JavaSet(set(['foo', 'bar', 'baz'])) How about letting me initialize JavaSet with a sequence, too? a = JavaSet(['foo', 'bar', 'baz']) Well, sure, but the point of JavaSet is to expose a set you own and control to Java. If you want to

Re: how to instantiate a Set?

2009-02-23 Thread Andi Vajda
On Feb 23, 2009, at 8:56, Bill Janssen wrote: Bill Janssen wrote: OK, I added JavaSet to my codebase. But still no joy -- I can now call mlt = MoreLikeThis(...) mlt.setStopWords(JavaSet(set(["foo", "bar", "bletch"]))) terms = mlt.retrieveInterestingTerms(...) Unfortunately, I st

Re: JCC Install

2009-02-23 Thread Andi Vajda
On Feb 23, 2009, at 10:06, Jacob Floyd wrote: I added a 'JDK' dict variable to setup.py that contains the root of the jdk installation for each platform. I then replaced all hard coded occurrences of that directory in the INCLUDES and LFLAGS dicts. If a JCC_JDK env variable is set it sup

Re: Pylucene

2009-02-24 Thread Andi Vajda
On Feb 24, 2009, at 7:33, Seid Mohammed wrote: I like python's text scripting capability. for that I have read pylucene and some of the samples taken from lucene in action book works fine. my question is, I have language specific tools such as analyzer, toknizer done for Amharic Language in ja

Re: Pylucene

2009-02-25 Thread Andi Vajda
On Wed, 25 Feb 2009, Bill Janssen wrote: Bill Janssen wrote: I'm trying to wrap neo4j (http://neo4j.org/) with JCC (2.1, the latest checkout from Subversion). I can't; it fails on org.neo4j.impl.core.RelationshipType (http://api.neo4j.org/current/org/neo4j/api/core/RelationshipType.html):

Re: Pylucene

2009-02-25 Thread Andi Vajda
On Wed, 25 Feb 2009, Andi Vajda wrote: On Wed, 25 Feb 2009, Bill Janssen wrote: Bill Janssen wrote: I'm trying to wrap neo4j (http://neo4j.org/) with JCC (2.1, the latest checkout from Subversion). I can't; it fails on org.neo4j.impl.core.RelationshipType (http://api.neo4j.o

Re: Pylucene

2009-02-27 Thread Andi Vajda
On Fri, 27 Feb 2009, Bill Janssen wrote: Andi Vajda wrote: I changed the 'Type' suffix used to name Python types to '$$Type'. neo4j now lets itself be wrapped. Fixed in rev 748053. Andi, thanks for this. Though it brings up another matter :-). neo4j has this funky Re

Re: wrapping template types; neo4j

2009-02-27 Thread Andi Vajda
On Fri, 27 Feb 2009, Bill Janssen wrote: Actually, the wrapping of neo4j doesn't work with the latest JCC -- it just doesn't fail obviously. However, some vital methods are not produced for several classes. For instance, the org.neo4j.api.core.Node class doesn't have the vital method "hasRela

Re: wrapping template types; neo4j

2009-02-27 Thread Andi Vajda
If you add --package java.lang to your jcc invocation, the getRelationShips() methods do get wrapped. As suspected, the pre-1.5 building blocks theory seems to be at work here. For example, the getRelationShips(RelationShipType... types) method gets wrapped as taking a RelationShipType array.

Re: wrapping template types; neo4j

2009-02-27 Thread Andi Vajda
On Fri, 27 Feb 2009, Andi Vajda wrote: If you add --package java.lang to your jcc invocation, the getRelationShips() methods do get wrapped. As suspected, the pre-1.5 building blocks theory seems to be at work here. For example, the getRelationShips(RelationShipType... types) method gets

Re: wrapping template types; neo4j

2009-02-27 Thread Andi Vajda
On Feb 27, 2009, at 19:05, Bill Janssen wrote: Andi Vajda wrote: For instance, the org.neo4j.api.core.Node class doesn't have the vital method "hasRelationship(RelationshipType...)". In fact, it doesn't seem to have a number of methods, like "Iterable getRelat

Re: wrapping template types; neo4j

2009-02-27 Thread Andi Vajda
On Feb 27, 2009, at 19:30, Bill Janssen wrote: Ah, I see hasRelationship is already there. The trick which I was missing is that you need to invoke it with a list of RelationshipType values, not just a single value. Yes, ... becomes an array. Andi.. Bill

Re: Wrapping PDFBox with JCC

2009-02-28 Thread Andi Vajda
On Sat, 28 Feb 2009, Christian Heimes wrote: Once I got the wrappring right I run into another issue. The generated code failed to compile: ... XMLRecordReader.h - ... XMLRecordReader(const XMLRecordReader& obj) : java::lang::Object(obj) {} jboolean bool(const java::lang::St

Re: Wrapping PDFBox with JCC

2009-03-07 Thread Andi Vajda
Ah well, using a reserved word as a c++ namespace name wasn't planned. Sneakier, but clearly a bug in JCC. Andi.. On Feb 28, 2009, at 19:08, Christian Heimes wrote: Andi Vajda schrieb: On Sat, 28 Feb 2009, Christian Heimes wrote: Once I got the wrappring right I run into another

Re: wrapping template types; neo4j

2009-03-07 Thread Andi Vajda
On Feb 28, 2009, at 19:57, Bill Janssen wrote: Andi Vajda wrote: On Feb 27, 2009, at 19:30, Bill Janssen wrote: Ah, I see hasRelationship is already there. The trick which I was missing is that you need to invoke it with a list of RelationshipType values, not just a single value

Re: Build failing

2009-03-08 Thread Andi Vajda
On Mar 8, 2009, at 21:37, Max Lynch wrote: Hey guys, I'm trying to build pylucene on a 64bit ubuntu 8.04 Hardy. The build always fails while compiling __wrap01__.cpp The only error I get from the build process is: make: *** [compile] Killed Maybe your compiler is running out of memory ?

Re: core dump with unregistered threads

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Bill Janssen wrote: I just spent some time tracking down a core dump in a big Python program, in PyLucene, till I figured out that the thread making the call had never been registered as a Java thread (the code at some interim calling frame changed till it suddenly was calli

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Sat, 28 Feb 2009, Christian Heimes wrote: Christian Heimes wrote: Thanks Andi! Your proposed solution worked like a charm and the file compiles. However the next file breaks with another error. This time it didn't help to add "operator" to the list of RES Follow up: Apparently JCC doesn't

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: public native void pythonDecRef(); public native void processTextPosition( TextPosition text ); public native void startDocument(PDDocument pdf); public native void startPage(PDPage page); } pdfbox.initVM(classpath=pdfbox.CLASSPATH) cl

Re: bugs in PythonQueryParser and PythonMultiFieldQueryParser

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Aaron Lav wrote: It looks to me as if the shipped PythonQueryParser (for overriding query parsing with Python code) only overrides the getBooleanQuery(Vector), but that just calls getBooleanQuery(List,boolean), which is the function which actually does the work (in the curre

Re: Wrapping PDFBox with JCC

2009-03-09 Thread Andi Vajda
On Mon, 9 Mar 2009, Christian Heimes wrote: Andi Vajda wrote: At first quick glance, you declare a native startPage method but your python class is not implementing it. On the other hand, it has a startArticle method. Oh, you are right. But that doesn't fix the issue. It's sti

Re: PDFBox testcase

2009-03-10 Thread Andi Vajda
On Tue, 10 Mar 2009, Christian Heimes wrote: I've attached an isolated testcase for you. You'll surely recognize the make file. It's based on your make file from PyLucene. I hope you don't mind ;) Thank you, that is very helpful in debugging this. But first, please do not contact me off list

Re: Embedded Java and signal handlers

2009-03-10 Thread Andi Vajda
On Mar 10, 2009, at 10:13, Christian Heimes wrote: Hello! A couple of months ago we ran into a strange problem with signals in our application stack. Whenever lucene was loaded, our application didn't react to SIGINT (ctrl + c) properly. Instead of shutting down step by step the server sto

Re: core dump with unregistered threads

2009-03-10 Thread Andi Vajda
On Mar 10, 2009, at 10:02, Bill Janssen wrote: Andi Vajda wrote: On Mon, 9 Mar 2009, Bill Janssen wrote: I just spent some time tracking down a core dump in a big Python program, in PyLucene, till I figured out that the thread making the call had never been registered as a Java thread

Re: core dump with unregistered threads

2009-03-10 Thread Andi Vajda
On Tue, 10 Mar 2009, Bill Janssen wrote: Andi Vajda wrote: I'm not sure (not near my computer at the moment) but if you are prepared to call a piece of code, why not call attachCurrentThread() then ? it's supposed to be a nop if it was called before. Andi.. Well, it's

[VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
With the recent release of Java Lucene 2.4.1, it's high time PyLucene get its first release out as an Apache subproject. I hope I got all the steps right and all the things into the right place. Release candidate 1 of PyLucene 2.4.1 is available from: http://people.apache.org/~vajda/stag

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
hkp server subkeys.pgp.net gpgkeys: key 39815DB27DADCFA5 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: Can't check signature: public key not found Also, http://pgp.mit.edu:11371/pks/lookup?search=Andi+Vajda&op=index At some point, too, it would be good

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
On Wed, 11 Mar 2009, Grant Ingersoll wrote: 1. I think you need to upload your Key to a public server (i.e. pgp.mit.edu) How do I do that ? http://pgp.mit.edu:11371/ There's a place to submit a key there. Done. Andi..

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
On Wed, 11 Mar 2009, Christian Heimes wrote: Andi Vajda schrieb: With the recent release of Java Lucene 2.4.1, it's high time PyLucene get its first release out as an Apache subproject. I hope I got all the steps right and all the things into the right place. Release candidate 1 of PyL

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
On Wed, 11 Mar 2009, Andi Vajda wrote: Could you stop setup.py from overwriting config.py when the file already exists and "install" is used as distutils command? Not when the file already exists since that would prevent changes to setup.py from being reflected in config.py but it

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
On Wed, 11 Mar 2009, Christian Heimes wrote: Andi Vajda wrote: Fixed. config.py is not written when 'build' is not in the command line args anymore. I uploaded a new release candidate, rc2, to http://people.apache.org/~vajda/staging_area. Thank you for the bug report. Your solut

Re: [VOTE] Release PyLucene 2.4.1

2009-03-11 Thread Andi Vajda
On Wed, 11 Mar 2009, Aric Coady wrote: On Mar 11, 2009, at 10:06 AM, Andi Vajda wrote: With the recent release of Java Lucene 2.4.1, it's high time PyLucene get its first release out as an Apache subproject. I hope I got all the steps right and all the things into the right place. T

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
On Thu, 12 Mar 2009, Christian Heimes wrote: I've attached a patch that hooks into the build process. With the patch the config file is created right before the .py files are copied into the build directory. Thanks for the patch. A few comments: def run(self): if (not os.path.ex

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
On Thu, 12 Mar 2009, Christian Heimes wrote: Andi Vajda wrote: In other words, you're fixing this with this patch by introducing another such inconvenience, both with a silent failure. It doesn't look like the trade off is worthwhile. This is not saying anything about the

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
ry/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib from JCC when it tries to init the JVM, previously discussed here: http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/200902.mbox/%3c35483342-7332-4aa4-8c5a-60693d656...@mikemccandless.com%3e Downgrading to

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
iscussed here: http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/200902.mbox/%3c35483342-7332-4aa4-8c5a-60693d656...@mikemccandless.com%3e Downgrading to JDK 1.5 fixed, this for some reason. Mike Andi Vajda wrote: On Wed, 11 Mar 2009, Aric Coady wrote: On Mar 11, 2009, at 10:06

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
On Mar 12, 2009, at 12:40, Michael McCandless wrote: Andi Vajda wrote: On Thu, 12 Mar 2009, Michael McCandless wrote: Anyway, finally, a little bruised from the whole process, and wondering what other Python things on my Mac may now be broken... I was able to run the tests

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
On Mar 12, 2009, at 13:07, Michael McCandless wrote: Michael McCandless wrote: A OK; this is quite confusing. Everyone seems to find it so. I advise Mac users at PARC to just use the system Python (unless and until they really know what they are doing). I will now do the same

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
On Mar 12, 2009, at 13:10, Christian Heimes wrote: Andi Vajda wrote: if not os.path.exists(self.jcc_config_file): create_config = 1 else: create_config = 0 for command in self.distribution.commands: if command.startswith(("build", "bdist")): create_config

Re: [VOTE] Release PyLucene 2.4.1.y

2009-03-12 Thread Andi Vajda
On Mar 12, 2009, at 16:32, Christian Heimes wrote: Andi Vajda wrote: That's the problem. If I change my env or edit setup.py and config.py exists already because I already did a build, it is not going to be re-generated if I do 'python setup.py install' even though it should

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Bill Janssen wrote: Michael McCandless wrote: I'm playing with 2.4.1 RC3 (on OS X 10.5.6) and found a few issues: * If I fail to call lucene.initVM, I get a rather unfriendly Bus Error. Is it possible (desirable?) to detect this and throw a friendly exception

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Christian Heimes wrote: Bill Janssen wrote: I was thinking about this some more, and have an idea. How about only having the dictionary of the module init'ed by calling initVM? That is, it would be practically speaking impossible to call any other Java method until the V

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: * When I hit an exception in Java, the carryover to Python fails to include the full stack trace (sources & line numbers) from Java, which makes debugging harder. Is that normal? That's right and documented here [1]. Andi.. [1] http://luce

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: I'm playing with 2.4.1 RC3 (on OS X 10.5.6) and found a few issues: * I'm attempting to re-use a field, by changing its value, and then adding the document to an index: lucene.initVM(lucene.CLASSPATH) writer = lucene.IndexWriter(lu

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Bill Janssen wrote: Christian Heimes wrote: Bill Janssen wrote: I was thinking about this some more, and have an idea. How about only having the dictionary of the module init'ed by calling initVM? That is, it would be practically speaking impossible to call any other

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Andi Vajda wrote: If, however, you replace the field.setValue('abc') call in the Python code with passing 'abc' to the constructor, it works too. It looks like you found a bug with the setValue() wrapper. I'm looking into it... It also works if

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: * I'm attempting to re-use a field, by changing its value, and then adding the document to an index: lucene.initVM(lucene.CLASSPATH) writer = lucene.IndexWriter(lucene.RAMDirectory(), lucene.Standar

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
reporting the stacktrace of the JavaError python exception and that looked non-trivial last time I looked into it. Andi.. Mike Andi Vajda wrote: On Fri, 13 Mar 2009, Michael McCandless wrote: * When I hit an exception in Java, the carryover to Python fails to include the full stack trac

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: OK, I created PYLUCENE-1, yay!: https://issues.apache.org/jira/browse/PYLUCENE-1 Andi can you go add some components to the Jira instance? What do you mean ? Please, give me an example. Andi.. Mike Andi Vajda wrote: On Fri, 13 Mar

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Andi Vajda wrote: On Fri, 13 Mar 2009, Michael McCandless wrote: * I'm attempting to re-use a field, by changing its value, and then adding the document to an index: lucene.initVM(lucene.CLASSPATH) writer = lucene.IndexWriter(lucene.RAMDire

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: Andi Vajda wrote: On Fri, 13 Mar 2009, Michael McCandless wrote: OK, I created PYLUCENE-1, yay!: https://issues.apache.org/jira/browse/PYLUCENE-1 Andi can you go add some components to the Jira instance? What do you mean ? Please, give

Re: a few issues with 2.4.1 RC3

2009-03-13 Thread Andi Vajda
On Fri, 13 Mar 2009, Michael McCandless wrote: Andi Vajda wrote: I uploaded a new release candidate, rc4, with this fix to the staging are: http://people.apache.org/~vajda/staging_area/ +1 to release My previous example now works fine. I was able to build & search index of first

about failure to call initVM()

2009-03-18 Thread Andi Vajda
A long standing problem with PyLucene and JCC has been the crash one gets when forgetting to call initVM() to boot the embedded Java VM. After thinking about this some more, it became clear that a Java VM without classes is not very useful and that hence a good place to put a is-there-a-vm-y

Re: about failure to call initVM()

2009-03-18 Thread Andi Vajda
On Wed, 18 Mar 2009, Andi Vajda wrote: A long standing problem with PyLucene and JCC has been the crash one gets when forgetting to call initVM() to boot the embedded Java VM. After thinking about this some more, it became clear that a Java VM without classes is not very useful and that

[VOTE] release PyLucene 2.4.1

2009-03-22 Thread Andi Vajda
Last week's vote failed to get the 3 PMC votes to make an official release. Only one PMC vote was cast, a +1 from Mike McCandless. In the meantime, some bugs were fixed and PyLucene 2.4.1 RC5 was uploaded to the staging area: http://people.apache.org/~vajda/staging_area/ Please vote to

Re: [VOTE] release PyLucene 2.4.1

2009-03-23 Thread Andi Vajda
On Mon, 23 Mar 2009, Michael McCandless wrote: I tested what happens when I fail to call initVM, and unfortunately I hit a SEGV (different from previous Bus Error): ... snip ... This is the code: import lucene #lucene.initVM(lucene.CLASSPATH) store = lucene.FSDirectory.getDirectory('/lu

Re: [VOTE] release PyLucene 2.4.1

2009-03-24 Thread Andi Vajda
On Tue, 24 Mar 2009, Chris Hostetter wrote: My one comment is regarding the documentation: the README and INSTALL files included in the release... ./README ./INSTALL ./jcc/README ./jcc/INSTALL ...are all simple one line files pointing people to URLs for HTML based documentation on the website

Re: [VOTE] release PyLucene 2.4.1

2009-03-24 Thread Andi Vajda
On Tue, 24 Mar 2009, Chris Hostetter wrote: : This is the way it used to be. In the interest of better maintenance by : avoiding duplication and to have nicer presentation than plain text, I : moved all the docs to the web site. That site's sources are all in svn I'm not advocating duplication

Re: [VOTE] release PyLucene 2.4.1

2009-03-24 Thread Andi Vajda
On Tue, 24 Mar 2009, Chris Hostetter wrote: : This is the way it used to be. In the interest of better maintenance by : avoiding duplication and to have nicer presentation than plain text, I : moved all the docs to the web site. That site's sources are all in svn I'm not advocating duplication

Re: [VOTE] release PyLucene 2.4.1

2009-03-24 Thread Andi Vajda
On Tue, 24 Mar 2009, Michael McCandless wrote: But don't forget the "for the impatient..." instructions ;) Oh, I thought you were going to contribute them :) Andi..

[VOTE] release PyLucene 2.4.1

2009-03-24 Thread Andi Vajda
On Tue, 24 Mar 2009, Chris Hostetter wrote: I'm just suggesting that a "snapshot" of the HTML docs be included future releases. (this is along the same lines as what some of the other subprojects do) PyLucene 2.1.4 RC7 received some documentation additions: - a local copy of the PyLucene we

Re: svn checkout very slow...

2009-03-25 Thread Andi Vajda
On Wed, 25 Mar 2009, Bill Janssen wrote: I've been building iterations of my UpLib installer all day. As part of this, I build every dependency from source and install it. Usually, the longest part of this is building an open-source PDF renderer. However, today the longest part by far is bui

Re: pylucene crash on win 2003.

2009-03-26 Thread Andi Vajda
On Mar 25, 2009, at 23:44, Antony Joseph wrote: Hello, I'm using pylucene in a Tubogears application. This is running on a Win 2003 server. Lately, the app has been crashing a lot, with the Windows Event log showing logs like: Faulting application python.exe, version 0.0.0.0, faulting

Re: Problem while installing the pylucene2.4.0 in linux

2009-03-28 Thread Andi Vajda
On Mar 28, 2009, at 5:13, Antony Joseph wrote: Hello, I'm building pylucene from source on Ubuntu 8.10. While doing JCC, the python setup.py build worked fine. However while installing the process gets stuck and exits as below. Any ideas for a workaround? What is this PasteDeploy stuf

Re: Problem while installing the pylucene2.4.0 in linux

2009-03-28 Thread Andi Vajda
On Sat, 28 Mar 2009, Antony Joseph wrote: I'm building pylucene from source on Ubuntu 8.10. While doing JCC, the python setup.py build worked fine. However while installing the process gets stuck and exits as below. Any ideas for a workaround? I just ran this on Ubuntu Intrepid myself and i

RE: Problem while installing the pylucene2.4.0 in linux

2009-03-30 Thread Andi Vajda
e-packages/lucene-2.4.0-py2.5-linux-i686.egg Extracting lucene-2.4.0-py2.5-linux-i686.egg to /usr/lib/python2.5/site-packages Adding lucene 2.4.0 to easy-install.pth file Installed /usr/lib/python2.5/site-packages/lucene-2.4.0-py2.5-linux-i686.egg Processing dependencies for lucene==2.4.0 Finished process

Re: [VOTE] release PyLucene 2.4.1

2009-04-01 Thread Andi Vajda
se RC7. I like your re-org of "For the Impatient/Rest of Us" into sections. Mike Andi Vajda wrote: On Tue, 24 Mar 2009, Chris Hostetter wrote: I'm just suggesting that a "snapshot" of the HTML docs be included future releases. (this is along the same lines as what

[ANNOUNCE] Apache PyLucene 2.4.1

2009-04-03 Thread Andi Vajda
I am pleased to announce the availability of Apache PyLucene 2.4.1. Apache PyLucene, a subproject of Apache Lucene, is a Python extension for accessing Java Lucene. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API compatible with the latest

  1   2   3   4   5   6   7   8   9   10   >