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.

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

Re: JCC Install

2009-02-23 Thread Andi Vajda
On Feb 23, 2009, at 10:06, Jacob Floyd techgurufl...@gmail.com 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

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 jans...@parc.com 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

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

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

Re: Build failing

2009-03-08 Thread Andi Vajda
On Mar 8, 2009, at 21:37, Max Lynch ihas...@gmail.com 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

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)

Re: [VOTE] Release PyLucene 2.4.1

2009-03-12 Thread Andi Vajda
/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 AM, Andi Vajda wrote: With the recent release of Java

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

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]

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 ant...@digitalglue.in 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

RE: Problem while installing the pylucene2.4.0 in linux

2009-03-30 Thread Andi Vajda
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 processing dependencies for lucene==2.4.0 Antony -Original Message- From: Andi Vajda

Re: JCC compile error PyLucene 2.4.1-1 on solaris 10

2009-04-06 Thread Andi Vajda
On Mon, 6 Apr 2009, Luc Bastiaenssen wrote: JCC compile eror with last revision 762325 on solaris 10 x86. It worked fine with PyLucene 2.4.0 Command used: export CC=CC; export JCC_JDK=/usr/java; /usr/bin/python2.5 setup.py build CC -DNDEBUG -O -Kpic -I/usr/java/include

Re: JCC: wrapping iText / issues with standard library macros / suggestions

2009-04-06 Thread Andi Vajda
On Mon, 6 Apr 2009, Andi Vajda wrote: Yes, this is a well known problem. JCC has a hardcoded list of words that can lead to such unfortunate collisions. I need to add another command line argument that makes it possible to add more such reserved words. You can now add --reserved DOMAIN

Re: Patches for JCC: --help (first draft) and support for bdist_wininst

2009-04-15 Thread Andi Vajda
On Wed, 15 Apr 2009, Jonas Maurus wrote: Hi Jonas, that's strange. Perhaps the mailing-list daemon stripped them, because Google Mail clearly shows them... anyway, I uploaded them on my website: http://maurus.net/src/jcc/help.patch I reviewed and modified this patch for correctness and

Re: installing pylucene-2.4.1

2009-04-23 Thread Andi Vajda
On Thu, 23 Apr 2009, Bill Janssen wrote: I've just tried installing 2.4.1, and I've got a few suggestions for packaging. 1. Put a plain-text version of readme.html in README, automatically generated from readme.html (or whatever), as part of the src-dist build process. I always hate it

Re: SpanScorer Not implemented Error

2009-04-28 Thread Andi Vajda
On Tue, 28 Apr 2009, Max Lynch wrote: I noticed that in the lucene-java-2.4.1 svn release that was downloaded when I built pylucene, there is no highlight folder anymore: http://svn.apache.org/repos/asf/lucene/java/tags/lucene_2_4_1/src/java/org/apache/lucene/search/ From what I can tell

Re: SpanScorer Not implemented Error

2009-04-28 Thread Andi Vajda
On Tue, 28 Apr 2009, Max Lynch wrote: Here is an example that is failing. However, by just doing a dir(SpanScorer ) with your console commands show it has no extra attributes other than the base java object ones, and it is using the spans version of the code. Indeed, the name clash between

Re: Java Memory errors and too many open files when using Pylucene

2009-05-20 Thread Andi Vajda
On Wed, 20 May 2009, Moshe Cohen wrote: Thanks. Version being used : 2.4.1 . I have already tried most of the well documented Lucene ideas. The seemingly weird thing is that the index is always quite small. I have experience of much larger indices on SOLR with no such errors. Started with a

Re: [VOTE] Release PyLucene 2.4.1-2

2009-05-22 Thread Andi Vajda
On Fri, 22 May 2009, Grant Ingersoll wrote: +1 And here is mine: +1 This vote now has passed and the PyLucene 2.4.1-2 refresher release should be made available shortly. Andi.. On May 16, 2009, at 5:35 PM, Andi Vajda wrote: Since the release of PyLucene 2.4.1-1 last month, some

Re: anyone succeed in building JCC with gcc on Cygwin windows for Pylucene

2009-06-03 Thread Andi Vajda
On Wed, 3 Jun 2009, edwin.mad...@verizonwireless.com wrote: For PyLucene, has anyone succeeded in building JCC with gcc version 3.4.4 on Cygwin windows? python setup.py build is throwing errors while compiling JArray.cpp that comes with PyLucene-2.4.0-2 .. jcc/sources/JArray.cpp: In

Re: make cryptic failure building PyLucene after successful JCC2.2 build on cygwin windows

2009-06-11 Thread Andi Vajda
On Thu, 11 Jun 2009, edwin.mad...@verizonwireless.com wrote: Thanks to Adi's suggestion removed JCC2.1 and installed JCC2.2. Promise to post all steps once I get PyLucene built on Cygwin Windows for python 2.5.2. make for PyLucene is failing without much information after successfully

Re: make PyLucene failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar

2009-06-15 Thread Andi Vajda
On Mon, 15 Jun 2009, edwin.mad...@verizonwireless.com wrote: make failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar . /usr/bin/python -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar --jar

Re: initVM() crash and web.py

2009-06-15 Thread Andi Vajda
On Mon, 15 Jun 2009, Neha Gupta wrote: The problem am having is that when I send a few requests one after the other then the server crashes. I tried to put initVM() right after import lucene statement at the top of the program but the crash still happens. I also read this post:

RE: make PyLucene failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar

2009-06-15 Thread Andi Vajda
On Mon, 15 Jun 2009, edwin.mad...@verizonwireless.com wrote: make now complains analysis/PythonTokenizer not found after commenting line for Token class in Makefile to build Pylucene on cygwin/windows Yep, that's what I expected. I bet it can't find any classes. Something's broken in your

Re: JCC and generics

2009-06-27 Thread Andi Vajda
On Jun 27, 2009, at 2:48, Ludovico Cavedon ludovico.cave...@gmail.com wrote: Hi, I was wondering if JCC now supports Java generics, like a Java function returning a ListMyClass Generics are currently ignored. A wrapper returning List would be generated and manual casting to MyClass

Re: pylucene windows

2009-07-23 Thread Andi Vajda
On Thu, 23 Jul 2009, Edwin Madari wrote: Appreciate if some one can share the information how you are running pylucne on windows environment. archives and installation page indicate windows, but no instruction on how to. without success installed cygwin, python, and tried compiling

Re: Japanese translation for PyLucene web site

2009-07-23 Thread Andi Vajda
like. If you do, I can add a link on the PyLucene homepage to your Japanese version. Let me know when you're ready. Thanks ! Andi.. 2009/7/23 Andi Vajda va...@apache.org: On Thu, 23 Jul 2009, Morimoto Tetsuya wrote: Hi Morimoto, Nice to meet you! I'm Tetsuya Morimoto who

Re: memory leak in string array

2009-08-03 Thread Andi Vajda
On Thu, 30 Jul 2009, Aric Coady wrote: On Jul 30, 2009, at 3:18 PM, Andi Vajda wrote: On Thu, 30 Jul 2009, Aric Coady wrote: Looks like there are some memory leaks in JArray_string, when iterating or accessing its items. I've seen it reproduce with 2.4.1 on linux and osx. Attached

Re: jcc build on systems without jni.h?

2009-08-08 Thread Andi Vajda
On Aug 8, 2009, at 4:33, b...@janssen.org (Bill Janssen) wrote: I was building on an as-yet unreleased version of a popular operating system the other day, and found that jcc failed to build, because jni.h is no longer installed where one might expect it to be. Don't know if this condition

Re: Pylucene installation issue on Ubuntu LInux

2009-08-10 Thread Andi Vajda
On Aug 10, 2009, at 10:54, KK dioxide.softw...@gmail.com wrote: hi all, Can someone please help me fixing the issue. before that these are the vesion of tools i'm using, pylucene version: PyLucene-2.2.0-1 python: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) gcc: gcc version

Re: Pylucene installation issue on Ubuntu LInux

2009-08-10 Thread Andi Vajda
changes/tweaks before following those steps? Thanks, KK On Mon, Aug 10, 2009 at 2:50 PM, Andi Vajda va...@apache.org wrote: On Aug 10, 2009, at 10:54, KK dioxide.softw...@gmail.com wrote: hi all, Can someone please help me fixing the issue. before that these are the vesion of tools i'm using

Re: Pylucene installation issue on Ubuntu LInux

2009-08-10 Thread Andi Vajda
changes/tweaks before following those steps? Thanks, KK On Mon, Aug 10, 2009 at 2:50 PM, Andi Vajda va...@apache.org wrote: On Aug 10, 2009, at 10:54, KK dioxide.softw...@gmail.com wrote: hi all, Can someone please help me fixing the issue. before that these are the vesion of tools i'm

Re: Pylucene installation issue on Ubuntu LInux

2009-08-10 Thread Andi Vajda
On Mon, 10 Aug 2009, Christian Heimes wrote: KK schrieb: Thanks Christian. After installing python-dev i'm able to do the build for jcc and then installed without gettig any error messages. Then from the main directory i changed the makefile and (surprisingly i dint see any site-packages

Re: Pylucene installation issue on Ubuntu LInux

2009-08-10 Thread Andi Vajda
On Mon, 10 Aug 2009, KK wrote: As I mentioned earlier jcc got installed to dist-packages sub-directory of python2.6, instead of site-packages, and modifying the Makefile to reflect that was not working porperly, so i simply created a sym link in /usr/lib/python2.6 wiht a name site-packages

Re: Pylucene installation issue on Ubuntu LInux

2009-08-11 Thread Andi Vajda
, because a year from now, when you've forgotten about all this, something strange is going to happen and it's going to take days to find that this softlink is messing something up... Your call. Andi.. --KK On Mon, Aug 10, 2009 at 9:15 PM, Andi Vajda va...@apache.org wrote: On Mon, 10 Aug

Re: jcc build on systems without jni.h?

2009-08-11 Thread Andi Vajda
On Tue, 11 Aug 2009, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: On Aug 8, 2009, at 4:33, b...@janssen.org (Bill Janssen) wrote: I was building on an as-yet unreleased version of a popular operating system the other day, and found that jcc failed to build, because jni.h

Re: What is the best way to call Lucene from Python?

2009-08-14 Thread Andi Vajda
On Aug 14, 2009, at 12:33, Valery Khamenya khame...@gmail.com wrote: Hi what would be the best way to call Lucene from Python application? Is PyLucene really a good way for it? In particular: What about PyLucene's scalability? What about PyLucene vs Lucene performance? (this post is quite

Re: What is the best way to call Lucene from Python?

2009-08-15 Thread Andi Vajda
. If you have any questions, feel free to ask this list. Lucene usage questions are best answered on the java-u...@lucene.apache.org list, of course, since it has a larger audience. Kind regards. Andi.. best regards -- Valery A.Khamenya On Fri, Aug 14, 2009 at 10:45 PM, Andi Vajda va

Re: passing vmargs in JCC

2009-08-18 Thread Andi Vajda
On Tue, 18 Aug 2009, Christian Kofler wrote: would it be possible to pass additional vmargs to JCC? Adding support for a --vmargs command line argument to JCC could be done. Out of curiosity, what extra VM parameter were you thinking of using ? Andi..

Re: issues with jcc and com.sun.tools.doclets.Taglet

2009-08-18 Thread Andi Vajda
On Tue, 18 Aug 2009, Andi Vajda wrote: On Tue, 18 Aug 2009, Christian Kofler wrote: I am new to JCC - but I alread like it! Well, I did not yet manage to wrap the Java library I want to, but I appreciate the project in general... I am stuck at the moment with the following problem

Re: issues with jcc and com.sun.tools.doclets.Taglet

2009-08-19 Thread Andi Vajda
related to my problem? No, they're just ignored. Andi.. Thanks for your feedback so far Christian Andi Vajda schrieb: On Tue, 18 Aug 2009, Andi Vajda wrote: On Tue, 18 Aug 2009, Christian Kofler wrote: I am new to JCC - but I alread like it! Well, I did not yet manage to wrap

Re: issues with jcc and com.sun.tools.doclets.Taglet

2009-08-19 Thread Andi Vajda
On Tue, 18 Aug 2009, Andi Vajda wrote: Maybe the JVM is depending on some native code that can't be found for this class. In that case you'd need to use -Djava.library.path=path with vmargs. If that resolves the problem, adding another command line flag to jcc for setting the library path

Re: passing vmargs in JCC

2009-08-20 Thread Andi Vajda
On Thu, 20 Aug 2009, Christian Kofler wrote: here is a little patch for passing extra vmargs on the commandline. For every vmarg, you need to add a --vmarg arg to the command line. Thank you for the patch. I integrated a slightly modified version of it and added docs. Committed in rev

Re: PyLucene

2009-09-02 Thread Andi Vajda
On Wed, 2 Sep 2009, Ralph Seward wrote: In Python: from distutils.util import get_platform get_platform() 'macosx-10.3-fat' Apart from the platform detection problem which comes from your setup, there is a bug in JCC where it adds -Wl,-rpath to the link args without checking first that

Re: PyLucene

2009-09-04 Thread Andi Vajda
On Fri, 4 Sep 2009, Ralph Seward wrote: I wanted to confirm this before I replied. Here is what I have discovered re: the platform detection problem. If I go to http://python.org/download/ and get the Python 2.6.2 Mac Installer Disk Image

Re: Japanese translation for PyLucene web site

2009-09-07 Thread Andi Vajda
On Sat, 5 Sep 2009, Morimoto Tetsuya wrote: I completed the Japanese translation for PyLucene web site. # you can see translated site after extracted an attach file Excellent ! In the beginning, I was thinking to publish that on my web site, but the pylucene-ja community's members

Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda
On Thu, 10 Sep 2009, Christian Heimes wrote: AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft has removed all download links unless you have a MSDN subscription. Err,

Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda
On Thu, 10 Sep 2009, Truffe Hugo wrote: Hello, I am not present. I am Hugo from Argentina and my English is quite bad. Well, let's see if I understand. - JCC already within PyLucene. Yes, the sources to JCC are part of the PyLucene source distribution. JCC is a sub-project of PyLucene:

Re: Problems in Pylucene with Win XP

2009-09-10 Thread Andi Vajda
On Fri, 11 Sep 2009, Christian Heimes wrote: Andi Vajda schrieb: On Thu, 10 Sep 2009, Christian Heimes wrote: AFAIK it's getting harder and harder to acquire VS 7 for free. Microsoft has removed all download links unless you have a MSDN subscription. Err, http://www.google.com/search?q

Re: Problems in Pylucene with Win XP

2009-09-12 Thread Andi Vajda
On Sep 12, 2009, at 6:58, Truffe Hugo hugotruff...@gmail.com wrote: Hello. With Visual Studio 2008 don't run Pylucene. What's the actual problem ? Andi.. Now I am downloading Visual Studio Prefessional 2003. Then I'll tell you if it works Andi Vajda escribió: On Fri, 11 Sep 2009

Re: Problems in Pylucene with Win XP

2009-09-12 Thread Andi Vajda
On Sep 12, 2009, at 12:11, Christian Heimes li...@cheimes.de wrote: Andi Vajda wrote: Do you really ? If so why ? If there is a library mismatch, can I not recompile Python 2.5 with VC++ 2008 ? Distutils doesn't allow to compile extensions with another version of MSVC than the version

Re: Problems in Pylucene and TurboLucene

2009-09-15 Thread Andi Vajda
ImportError: DLL load failed: No se puede encontrar el m¾dulo especi ficado. Andi Vajda escribió: On Sep 15, 2009, at 4:43, Truffe Hugo hugotruff...@gmail.com wrote: Hello. Question. Now is not called most Pylucene the package is installed if not JCC? The package is called 'lucene

Re: Problems in Pylucene and TurboLucene

2009-09-15 Thread Andi Vajda
On Sep 15, 2009, at 13:17, Truffe Hugo hugotruff...@gmail.com wrote: In xp too? Follow the installation guide, but I'm lost Yes, on Windows too and yes, you need cygwin to run 'make'. Andi.. Andi Vajda escribió: On Sep 15, 2009, at 12:26, Truffe Hugo hugotruff...@gmail.com wrote

Re: Problems in Pylucene and TurboLucene

2009-09-16 Thread Andi Vajda
://svn.apache.org/repo s/asf/lucene/java/tags/lucene_2_4_1 lucene-java-2.4.1, ...) failed. make (e=2): El sistema no puede hallar el archivo especificado. make: *** [lucene-java-2.4.1] Error 2 Andi Vajda escribió: On Sep 15, 2009, at 13:17, Truffe Hugo hugotruff...@gmail.com wrote: In xp too

Re: Problems in Pylucene and TurboLucene

2009-09-16 Thread Andi Vajda
jcc --shared NUM_FILES=2 Hugo Andi Vajda escribió: On Sep 16, 2009, at 5:36, Truffe Hugo hugotruff...@gmail.com wrote: Hello, and make install for windows, but it is throwing this error. Apache's svn server had a problem last night, it seems. Try again. If the error persists, please help

Re: Problems in Pylucene and TurboLucene

2009-09-16 Thread Andi Vajda
On Wed, 16 Sep 2009, Truffe Hugo wrote: Yes, I have svn that I use in my work. Well, I don't know what to tell you. 'make' is trying to invoke svn to get the Java Lucene sources and is failing. Have you tried to invoke this command manually ? Andi.. Andi Vajda escribió: On Wed, 16

Re: Problems in Pylucene and TurboLucene

2009-09-16 Thread Andi Vajda
the matter ? Could you please try to run the command below manually, in the PyLucene directory ? svn export -r HEAD http://svn.apache.org/repos/asf/lucene/java/tags/lucene_2_4_1 lucene-java-2.4.1 Thanks ! Andi.. Andi Vajda escribió: On Wed, 16 Sep 2009, Truffe Hugo wrote: Yes, I have

Re: Problems in Pylucene and JCC

2009-09-17 Thread Andi Vajda
On Thu, 17 Sep 2009, Truffe Hugo wrote: I could change some things, but I stay here. G:\Solr\pylucene-2.4.1-1make install c:\Python25\python.exe -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core -2.4.1.jar --jar lucene-java-2.4.1/build/contrib/snowball/lucene-snowball-2.4.1. jar

Re: pylucene make problem Win XP and cygwin

2009-09-23 Thread Andi Vajda
Vajda va...@apache.org wrote: From: Andi Vajda va...@apache.org Subject: Re: pylucene make problem Win XP and cygwin To: pylucene-dev@lucene.apache.org Date: Wednesday, September 23, 2009, 8:23 PM On Wed, 23 Sep 2009, Sepand Ansari wrote: Andi

Re: pylucene make problem Win XP and cygwin

2009-09-23 Thread Andi Vajda
On Wed, 23 Sep 2009, Sepand Ansari wrote: yes, I have only: 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info Are you using setuptools or distutils ? If you don't have setuptools, don't use --shared (and then there is no jcc.dll) JCC's setup.py won't build a jcc.dll if setuptools is not found. If

Re: pylucene make problem Win XP and cygwin

2009-09-23 Thread Andi Vajda
On Wed, 23 Sep 2009, Andi Vajda wrote: On Wed, 23 Sep 2009, Sepand Ansari wrote: yes, I have only: 2895 Sep 23 17:27 JCC-2.3-py2.6.egg-info Are you using setuptools or distutils ? To find out if you have setuptools (and what version): $ python -c from pkg_resources import require

Re: Bug report for JCC-2.3 (build problem)

2009-09-28 Thread Andi Vajda
On Sep 27, 2009, at 21:52, Jakub Krajcovic jakub.krajco...@al.com.au wrote: Hello everyone, I haven't found any bugzilla or other ticketing system for this project, and the website said that this is the best way to get in touch with developers to file bug reports, so here goes: I was

Re: PyLucene 2.9.0 sources available for testing

2009-09-29 Thread Andi Vajda
On Tue, 29 Sep 2009, Aaron Lav wrote: On Tue, Sep 29, 2009 at 03:10:01PM -0700, Andi Vajda wrote: With the recent release of Java Lucene 2.9.0, a PyLucene 2.9.0 release is in the works. I just completed the first rev of this and checked it into svn trunk. So far, I've only tested it on Mac

Re: PyLucene 2.9.0 sources available for testing

2009-09-29 Thread Andi Vajda
On Tue, 29 Sep 2009, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: The new Mac OS X 10.6 section of the Makefile makes use of the new --arch JCC command line parameter that makes it possible to override the -arch settings Python was configured with. Even though Mac OS X 10.6 is only

Re: PyLucene 2.9.0 sources available for testing

2009-09-29 Thread Andi Vajda
On Tue, 29 Sep 2009, Bill Janssen wrote: I think it would make sense to make that the default on OS X 10.6, even though it would take longer to compile. What I was trying to say about Python on 10.6 is that you can't tell whether the user will be running /usr/bin/python 32-bit or 64-bit,

Re: InstantiationException with PythonHitCollector

2009-09-30 Thread Andi Vajda
On Wed, 30 Sep 2009, Max Lynch wrote: Hi, I am trying to subclass lucene.PythonHitCollector to use the HitCollector features of Lucene, but I get this error: File /home/max/test/spider/src/ras/spider/spider.py, line 812, in __init__ super(lucene.PythonHitCollector, self).__init__()

Re: PyLucene 2.9.0 sources available for testing

2009-09-30 Thread Andi Vajda
On Wed, 30 Sep 2009, Aric Coady wrote: On Sep 29, 2009, at 3:10 PM, Andi Vajda wrote: With the recent release of Java Lucene 2.9.0, a PyLucene 2.9.0 release is in the works. I just completed the first rev of this and checked it into svn trunk. So far, I've only tested it on Mac OS X 10.6

Re: pylucene installation issue

2009-10-01 Thread Andi Vajda
On Thu, 1 Oct 2009, abhinav mishra wrote: Hi All, Till now, I've managed to install JCC(hopefully). I'm trying to install it on windows. Output of running(through DOS) python setup.py build is given below: It's kind of hard to tell what's wrong since the output you're sending is

Re: PyLucene 2.9.0 sources available for testing

2009-10-01 Thread Andi Vajda
On Fri, 2 Oct 2009, Atsuo Ishimoto wrote: On Wed, Sep 30, 2009 at 7:10 AM, Andi Vajda va...@apache.org wrote: If you're on a different platform and have some spare cycles, I'd be curious to see if all unit tests pass on your platform. Hi, All unit tests passed on Windows Vista

Re: PyLucene: SystemError: NULL result without error in PyObject_Call

2009-10-07 Thread Andi Vajda
On Wed, 7 Oct 2009, Adil Zaaraoui wrote: I'm trying to test indexing documents using PyLucene; I tried the file IndexFiles.py from pylucene samples (http://svn.apache.org/viewvc/lucene/pylucene/trunk/samples/IndexFiles.py?view=markup). When runing the IndexFiles(/tmp/indexing, index,

[VOTE] Release PyLucene 2.9.0-1

2009-10-07 Thread Andi Vajda
With the recent release of Java Lucene 2.9.0, a PyLucene 2.9.0-1 release closely tracking it is ready. Release candidate 1 of PyLucene 2.9.0-1 is available from: http://people.apache.org/~vajda/staging_area/ The list of changes is available from:

Re: Re : PyLucene: SystemError: NULL result without error in PyObject_Call

2009-10-08 Thread Andi Vajda
give you a better error message ? Andi.. Many thanks De : Andi Vajda va...@apache.org À : pylucene-dev@lucene.apache.org Envoyé le : Mer 7 Octobre 2009, 18 h 29 min 51 s Objet : Re: PyLucene: SystemError: NULL result without error in PyObject_Call On Wed

Re: [VOTE] Release PyLucene 2.9.0-1

2009-10-13 Thread Andi Vajda
On Wed, 7 Oct 2009, Andi Vajda wrote: With the recent release of Java Lucene 2.9.0, a PyLucene 2.9.0-1 release closely tracking it is ready. Release candidate 1 of PyLucene 2.9.0-1 is available from: http://people.apache.org/~vajda/staging_area/ The list of changes is available from

[ANNOUNCE] Apache PyLucene 2.9.0

2009-10-13 Thread Andi Vajda
I am pleased to announce the availability of Apache PyLucene 2.9.0. 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

Re: [ANNOUNCE] Apache PyLucene 2.9.0

2009-10-14 Thread Andi Vajda
On Thu, 15 Oct 2009, Christian Heimes wrote: Andi Vajda wrote: Hmm, that's an idea... It is my understanding that for a package to 'work' in PyPI it needs to have some setup.py support, right ? JCC, for example, is already on PyPI since it's entirely built with setup.py. PyLucene

Re: why not setuptools?

2009-10-15 Thread Andi Vajda
On Oct 15, 2009, at 9:42, Bill Janssen jans...@parc.com wrote: Felix Schwarz felix.schw...@web.de wrote: Am 15.10.2009 07:01, schrieb Andi Vajda: If distutils or the new fork grows the ability to build a regular shared library, I'd be less wedded to setuptools. Maybe you want to contact

Re: issue with ParallelMultiSearcher arguments

2009-10-16 Thread Andi Vajda
On Fri, 16 Oct 2009, Yura Smolsky wrote: I have added Java wrapper for Searcher class (see attach) and compiled pylucene 2.4.1 against Python 2.5.4 (debian Linux 2.6.30-2-amd64) When I try following program #!/usr/local/bin/python from lucene import * class MySearcher(PythonSearcher):

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Andi Vajda
On Oct 28, 2009, at 12:09, Bill Janssen jans...@parc.com wrote: Andi Vajda va...@apache.org wrote: The snowball JAR comes from this statement in the Makefile: SNOWBALL_JAR=$(LUCENE)/build/contrib/snowball/lucene-snowball-$ (LUCENE_VER).jar Which means that it's whatever corresponds

Re: which Snowball stemmers are in PyLucene?

2009-10-28 Thread Andi Vajda
On Wed, 28 Oct 2009, Marvin Humphrey wrote: On Wed, Oct 28, 2009 at 12:20:55PM -0700, Andi Vajda wrote: There may be an API in the Snowball library to do this enumeration. There's this, from libstemmer.h: /** Returns an array of the names of the available stemming algorithms

Re: Pylucene and JCC 2.4.1

2009-10-28 Thread Andi Vajda
On Wed, 28 Oct 2009, Andi Vajda wrote: On Oct 28, 2009, at 2:45, Manolo Padron Martinez manol...@gmail.com wrote: What is the version of your gcc ? I did the same build today on Ubuntu Gutsy 64 bits without any problem. gcc (Debian 4.3.2-1.1) 4.3.2 g++ (Debian 4.3.2-1.1) 4.3.2 Here

Re: Ngram tokenizer

2009-10-29 Thread Andi Vajda
On Oct 29, 2009, at 10:28, abhinav mishra abhina...@gmail.com wrote: Hi, I know that there is a class EdgeNGramTokenizer, which can be used to extract n-grams. However, I'm not able use it. What do you mean by not able to use it ? Andi.. Any pointers or maybe, piece of code in this

Re: Ngram tokenizer

2009-10-29 Thread Andi Vajda
, Andi Vajda va...@apache.org wrote: On Oct 29, 2009, at 10:28, abhinav mishra abhina...@gmail.com wrote: Hi, I know that there is a class EdgeNGramTokenizer, which can be used to extract n-grams. However, I'm not able use it. What do you mean by not able to use it ? Andi.. Any

Re: patches for jcc build with setuptools 0.6c11

2009-10-31 Thread Andi Vajda
On Sat, 31 Oct 2009, david jenkins wrote: jcc fails to build using setuptools 0.6c11 due to the version check being string based. The submitted patch jcc-setup.patch resoloves this. hunk #1 of patch.43 fails on build_ext.py due to an if statement at line 85 in build_ext.py. The submitted

Re: JCC: no match for ‘operator=’ message when building

2009-11-05 Thread Andi Vajda
On Nov 5, 2009, at 11:00, Andrew MacKinlay admac...@gmail.com wrote: Hi, I'm trying to wrap the LingPipe library (http://alias-i.com/lingpipe/web/download.html ) using JCC. I've had a couple of problems - one seems to be fixed by simply excluding a class that I don't think I need (I can

Re: [VOTE] Release PyLucene 2.9.1-1

2009-11-07 Thread Andi Vajda
this is something silly about my env! You can get setuptools from http://python.org/pypi, aka the cheeseshop :) Andi.. Mike On Sat, Nov 7, 2009 at 3:18 AM, Andi Vajda va...@apache.org wrote: With the (imminent) release of Java Lucene 2.9.1, a PyLucene 2.9.1-1 release closely tracking

Re: [ANNOUNCE] Apache PyLucene 3.0.0

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

Re: unload JVM?

2010-02-27 Thread Andi Vajda
On Sat, 27 Feb 2010, Roman Chyla wrote: I would like to unload JVM in some situations (to reload it). The usecase is this: - vmargs can be passed only once Yes, a VM can only be initialized once. - consecutive calls to initVM raise errors Only if you use parameters other than classpath,

Re: unload JVM?

2010-03-01 Thread Andi Vajda
On Feb 28, 2010, at 7:16, Roman Chyla roman.ch...@gmail.com wrote: - consecutive calls to initVM raise errors Only if you use parameters other than classpath, right ? yes Or did you find a different problem ? - in my program components interact with several JCC wrapped libraries

[VOTE] Release PyLucene 2.9.2-1 and 3.0.1-1 (nag)

2010-03-03 Thread Andi Vajda
With the recent - simultaneous - releases of Java Lucene 2.9.2 and 3.0.1, PyLucene 2.9.2-1 and 3.0.1-1 releases closely tracking them are ready. Release candidates are available from: http://people.apache.org/~vajda/staging_area/ A list of changes in this release can be seen at:

Re: [VOTE] Release PyLucene 2.9.2-1 and 3.0.1-1 (nag)

2010-03-04 Thread Andi Vajda
On Wed, 3 Mar 2010, Andi Vajda wrote: With the recent - simultaneous - releases of Java Lucene 2.9.2 and 3.0.1, PyLucene 2.9.2-1 and 3.0.1-1 releases closely tracking them are ready. Release candidates are available from: http://people.apache.org/~vajda/staging_area/ A list of changes

Re: the Python multicore threading problem jcc?

2010-03-05 Thread Andi Vajda
On Mar 5, 2010, at 13:48, Bill Janssen jans...@parc.com wrote: The problem Python has with multiple cores and multi-threading, pointed out by Dave Beazley last year (http://www.dabeaz.com/python/GIL.pdf), looks like it will still persist for the next three or four years, at least, on OS X.

Re: Building PyLucene on Windows

2010-03-09 Thread Andi Vajda
On Mar 9, 2010, at 13:13, Thomas Koch k...@orbiteam.de wrote: Dear PyLucene-fans, I just managed to build pylucene-2.9.1-1 on Windows with Python 2.6 and Java 1.6 and like to tell my 'story' - just in case anyone else runs into similar problems... First I should mention that I'm using

Re: Building PyLucene on Windows

2010-03-10 Thread Andi Vajda
, if a windows user came forward with a better build solution for windows (or better yet, in general) and is prepared to maintain it, that would be a big plus. Andi.. roman On Tue, Mar 9, 2010 at 3:50 PM, Andi Vajda va...@apache.org wrote: On Mar 9, 2010, at 13:13, Thomas Koch k...@orbiteam.de

Re: Pylucene build issue on ubuntu : cannot find lpython2.5

2010-03-11 Thread Andi Vajda
On Mar 11, 2010, at 4:21, sudhir singh rana sudhirsinghr...@gmail.com wrote: Hi, Hi all, I am getting following error while buiding jcc for pylucene /usr/bin/ld: cannot find -lpython2.5 collect2: ld returned 1 exit status any idea which thing is causing this problem. You probably need

Re: building pylucene with mingw

2010-03-18 Thread Andi Vajda
On Thu, 18 Mar 2010, Bill Janssen wrote: Andi Vajda va...@apache.org wrote: If you don't, then just kwds[extra_link_args] = lflags is done. I've still got to manually copy the .lib file in order to build PyLucene, but otherwise it seems to work. I'm working on getting the .lib file

Re: JCC 2.5.1 tarball broken

2010-03-19 Thread Andi Vajda
On Thu, 18 Mar 2010, Ludovico Cavedon wrote: On Thu, Mar 18, 2010 at 2:34 PM, Andi Vajda va...@apache.org wrote: Indeed, the tar archive for JCC 2.5.1 on pypi - as produced by setup.py sdist - was woefully incomplete. I can reproduce the problem but only on this branch. This is rather strange

  1   2   3   4   5   6   7   8   9   >