lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Heimes <>
Subject Re: pylucene (SVN) fails under Python-2.6.2
Date Wed, 22 Apr 2009 10:08:44 GMT
Helmut Jarausch schrieb:
> Hi,
> has anybody tried to install PyLucene on a system running Python-2.6
> (2.6.2 in my case)
> Installing jcc works just fine, but when executing 'make' I get
> /usr/bin/python -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 --jar lucene-java-2.4.1/build/contrib/highlighter/lucene-highlighter-2.4.1.jar
--jar lucene-java-2.4.1/build/contrib/analyzers/lucene-analyzers-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/regex/lucene-regex-2.4.1.jar
--jar lucene-java-2.4.1/build/contrib/queries/lucene-queries-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/instantiated/lucene-instantiated-2.4.1.jar
--jar build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package
java.util java.util.Arrays java.text.SimpleDateFormat --package --exclude org.apache.lucene.queryParser.Token
--exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager
--exclude org.apache.lucene.queryParser.ParseException 
>  python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;'
--mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;'
--version 2.4.1 --module python/ --files 1 --build 
> /usr/bin/python: jcc is a package and cannot be directly executed
> make: *** [compile] Error 1

Hello Helmut!

Your problem ca be fixed easily. You simple have to replace "-m jcc"
with "-m jcc.__main__" in your Makefile. Python 2.6 refuses to execute a
package but the new jcc.__main__ modules takes care of the issue.


View raw message