You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Dan Morrow <dm...@maned.com> on 2009/02/19 21:29:06 UTC

trouble making PyLucene

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 run "make" -  
well it does compile many files. But then it gets to one, and I don't  
know what the error message means.

/usr/bin/python -m jcc --shared --jar lucene-java-2.4.0/build/lucene- 
core-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/snowball/lucene- 
snowball-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/highlighter/ 
lucene-highlighter-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/ 
analyzers/lucene-analyzers-2.4.0.jar --jar lucene-java-2.4.0/build/ 
contrib/regex/lucene-regex-2.4.0.jar --jar lucene-java-2.4.0/build/ 
contrib/queries/lucene-queries-2.4.0.jar --jar lucene-java-2.4.0/build/ 
contrib/instantiated/lucene-instantiated-2.4.0.jar --jar build/jar/ 
extensions.jar --package java.lang java.lang.System java.lang.Runtime  
--package java.util java.text.SimpleDateFormat --package java.io  
java.io.StringReader java.io.InputStreamReader java.io.FileInputStream  
--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 org.apache.lucene.search.Hits  
'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --version  
2.4.0 --files 2 --build
/usr/bin/python: module jcc has no associated file

I am pretty new to python, so I don't know what it's messages mean.  
Basically, I have no idea what is meant by "module jcc has no  
associated file". If you know what this might mean, I'd be very happy  
to hear from you.

My linux is RHEL5, btw, if that helps.

-Dan.


Re: trouble making PyLucene

Posted by Dan Morrow <dm...@maned.com>.
On Feb 19, 2009, at 6:26 PM, Andi Vajda wrote:

>
> On Feb 19, 2009, at 12:29, Dan Morrow <dm...@maned.com> 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
>> run "make" - well it does compile many files. But then it gets to
>> one, and I don't know what the error message means.
>>
>> /usr/bin/python -m jcc --shared --jar lucene-java-2.4.0/build/lucene-
>> core-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/snowball/lucene-
>> snowball-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/highlighter/
>> lucene-highlighter-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/
>> analyzers/lucene-analyzers-2.4.0.jar --jar lucene-java-2.4.0/build/
>> contrib/regex/lucene-regex-2.4.0.jar --jar lucene-java-2.4.0/build/
>> contrib/queries/lucene-queries-2.4.0.jar --jar lucene-java-2.4.0/
>> build/contrib/instantiated/lucene-instantiated-2.4.0.jar --jar build/
>> jar/extensions.jar --package java.lang java.lang.System
>> java.lang.Runtime --package java.util java.text.SimpleDateFormat --
>> package java.io java.io.StringReader java.io.InputStreamReader
>> java.io.FileInputStream --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
>> org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/
>> lucene/document/Document;' --version 2.4.0 --files 2 --build
>> /usr/bin/python: module jcc has no associated file
>>
>> I am pretty new to python, so I don't know what it's messages mean.
>> Basically, I have no idea what is meant by "module jcc has no
>> associated file". If you know what this might mean, I'd be very
>> happy to hear from you.
>>
>> My linux is RHEL5, btw, if that helps.
>
> What is your version of Python ?
>
> Andi..
>
>>
>>
>> -Dan.

Um, sorry about that. I've resolved it. My path for JCC was incorrect.

-Dan.


Re: trouble making PyLucene

Posted by Andi Vajda <va...@apache.org>.
On Feb 19, 2009, at 12:29, Dan Morrow <dm...@maned.com> 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  
> run "make" - well it does compile many files. But then it gets to  
> one, and I don't know what the error message means.
>
> /usr/bin/python -m jcc --shared --jar lucene-java-2.4.0/build/lucene- 
> core-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/snowball/lucene- 
> snowball-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/highlighter/ 
> lucene-highlighter-2.4.0.jar --jar lucene-java-2.4.0/build/contrib/ 
> analyzers/lucene-analyzers-2.4.0.jar --jar lucene-java-2.4.0/build/ 
> contrib/regex/lucene-regex-2.4.0.jar --jar lucene-java-2.4.0/build/ 
> contrib/queries/lucene-queries-2.4.0.jar --jar lucene-java-2.4.0/ 
> build/contrib/instantiated/lucene-instantiated-2.4.0.jar --jar build/ 
> jar/extensions.jar --package java.lang java.lang.System  
> java.lang.Runtime --package java.util java.text.SimpleDateFormat -- 
> package java.io java.io.StringReader java.io.InputStreamReader  
> java.io.FileInputStream --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  
> org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/ 
> lucene/document/Document;' --version 2.4.0 --files 2 --build
> /usr/bin/python: module jcc has no associated file
>
> I am pretty new to python, so I don't know what it's messages mean.  
> Basically, I have no idea what is meant by "module jcc has no  
> associated file". If you know what this might mean, I'd be very  
> happy to hear from you.
>
> My linux is RHEL5, btw, if that helps.

What is your version of Python ?

Andi..

>
>
> -Dan.