Now it works. The problem was that i was trying to instantiate the lucene StandardAnalyser object without initializing the VM classpath; so before instantiating the object i added this statement: lucene.initVM(lucene.CLASSPATH).
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, 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", > lucene.StandardAnalyzer()) i get the following error: It works fine for me here. How did you invoke the program ? I did: $ python samples/IndexFiles.py /Users/vajda You might want to try the latest from svn trunk, I fixed a bug there where "SystemError: NULL result without error in PyObject_Call" was reported instead of the actual error message. Andi..