lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: Trouble installing pyLucene on FreeBSD
Date Sat, 09 Oct 2010 01:03:35 GMT

On Oct 8, 2010, at 17:37, "Gav..." <gavin@16degrees.com.au> wrote:

> Hi,
>
> Using FreeBSD 8.1-RC2 Im having trouble installing.
>
> I first tried to install using the ports system and
> /usr/ports/textproc/py-lucene
>
> When that failed I installed from source, compiled jcc and then  
> pylucene,
> after some
> fiddling of source to s/freebsd7/freebsd8/g I ended up at the same  
> failure
> as when
> installing using the port.
>
> Using Python 2.6 and Ant 1.7, heres the error:

What version of java are you using ?
Whose JDK ?

Andi..


>
> /usr/local/bin/python -m jcc.__main__ --jar
> lucene-java-3.0.2/build/lucene-core-3.0.2.jar --jar
> lucene-java-3.0.2/build/contrib/snowball/lucene-snowball-3.0.2.jar -- 
> jar
> lucene-java-3.0.2/build/contrib/analyzers/common/lucene- 
> analyzers-3.0.2.jar
> --jar lucene-java-3.0.2/build/contrib/regex/lucene-regex-3.0.2.jar -- 
> jar
> lucene-java-3.0.2/build/contrib/memory/lucene-memory-3.0.2.jar --jar
> lucene-java-3.0.2/build/contrib/highlighter/lucene- 
> highlighter-3.0.2.jar
> --jar lucene-java-3.0.2/build/contrib/queries/lucene- 
> queries-3.0.2.jar --jar
> build/jar/extensions.jar  --package java.lang java.lang.System
> java.lang.Runtime --package java.util java.util.Arrays
> java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator
> --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 --exclude
> org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude
> org.apache.regexp.RegexpTunnel --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;' --rename
> org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer
> --version 3.0.2 --module python/collections.py --files 2 --build
> Exception in thread "main" java.lang.NoSuchMethodException:
> java.lang.Object.compareTo(java.lang.Object)
>        at java.lang.Class.getMethod(Class.java:1605)
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.6/runpy.py", line 122, in  
> _run_module_as_main
>    "__main__", fname, loader, pkg_name)
>  File "/usr/local/lib/python2.6/runpy.py", line 34, in _run_code
>    exec code in run_globals
>  File
> "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1- 
> RC2-amd64.
> egg/jcc/__main__.py", line 102, in <module>
>    cpp.jcc(sys.argv)
>  File
> "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1- 
> RC2-amd64.
> egg/jcc/cpp.py", line 565, in jcc
>    declares, typeset)
>  File
> "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1- 
> RC2-amd64.
> egg/jcc/cpp.py", line 1014, in code
>    superMethod = find_method(superCls, methodName, params)
>  File
> "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1- 
> RC2-amd64.
> egg/jcc/cpp.py", line 218, in find_method
>    if (e.getJavaException().getClass().getName() ==
> 'java.lang.NoSuchMethodException'):
>  File
> "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1- 
> RC2-amd64.
> egg/jcc/cpp.py", line 51, in getJavaException
>    return self.args[0]
> IndexError: tuple index out of range
> gmake: *** [compile] Error 255
>
> Any ideas please?
>
> Gav...
>

Mime
View raw message