Mailing List Archive

Where to report issues with lucene/pylucene
I tried to sign up with ASF's JIRA system but got the message

The project you have selected does not use Jira for issue tracking. Please
> contact the project at dev@lucene.apache.org to find out where to submit
> issues.


I'm trying to build pylucene on Ubuntu but I'm getting an error message
which is a little bit opaque.

jar
lucene-java-9.7.0/lucene/core/build/runtimeJars/lucene-core-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/analysis/common/build/runtimeJars/lucene-analysis-common-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/backward-codecs/build/runtimeJars/lucene-backward-codecs-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/classification/build/runtimeJars/lucene-classification-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/codecs/build/runtimeJars/lucene-codecs-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/expressions/build/runtimeJars/lucene-expressions-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/extensions/build/runtimeJars/lucene-extensions-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/facet/build/runtimeJars/lucene-facet-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/grouping/build/runtimeJars/lucene-grouping-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/highlighter/build/runtimeJars/lucene-highlighter-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/join/build/runtimeJars/lucene-join-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/analysis/kuromoji/build/runtimeJars/lucene-analysis-kuromoji-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/memory/build/runtimeJars/lucene-memory-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/misc/build/runtimeJars/lucene-misc-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/monitor/build/runtimeJars/lucene-monitor-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/analysis/nori/build/runtimeJars/lucene-analysis-nori-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/queries/build/runtimeJars/lucene-queries-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/queryparser/build/runtimeJars/lucene-queryparser-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/sandbox/build/runtimeJars/lucene-sandbox-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/spatial3d/build/runtimeJars/lucene-spatial3d-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/analysis/stempel/build/runtimeJars/lucene-analysis-stempel-9.7.0-SNAPSHOT.jar
--jar
lucene-java-9.7.0/lucene/suggest/build/runtimeJars/lucene-suggest-9.7.0-SNAPSHOT.jar
--use_full_names --include
lucene-java-9.7.0/lucene/expressions/build/runtimeJars/antlr4-runtime-4.11.1.jar
--include
lucene-java-9.7.0/lucene/expressions/build/runtimeJars/asm-7.2.jar
--include
lucene-java-9.7.0/lucene/expressions/build/runtimeJars/asm-commons-7.2.jar
--include lucene-java-9.7.0/lucene/facet/build/runtimeJars/hppc-0.9.1.jar
--package java.lang java.lang.System java.lang.Runtime --package java.util
java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet
java.util.TreeSet java.lang.IllegalStateException
java.lang.IndexOutOfBoundsException java.util.NoSuchElementException
java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator
--package java.util.concurrent java.util.concurrent.Executors --package
java.util.function --package java.util.regex --package java.io
java.io.StringReader --package java.nio.file java.nio.file.Path
java.nio.file.Files java.nio.file.Paths --package org.antlr.v4.runtime
--package org.antlr.v4.runtime.atn --exclude
org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude
org.apache.regexp.RegexpTunnel --exclude
org.apache.lucene.misc.store.WindowsDirectory --exclude
org.apache.lucene.misc.store.NativePosixUtil --exclude 'module-info'
--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
java.util.AbstractCollection 'size:()I' '-:-' --sequence
java.util.AbstractList '-:-' 'get:(I)Ljava/lang/Object;'
org.apache.lucene.index.IndexWriter:getReader
org.apache.lucene.analysis.Tokenizer:input --version 9.7.0 --module
python/collections.py --module python/ICUNormalizer2Filter.py --module
python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --files
--build
Illegal option: l
Try `jar --help' for more information.

Where should I report issues for this project?

Thanks.

--
Bob Kline
https://www.rksystems.com
mailto:bkline@rksystems.com
Re: Where to report issues with lucene/pylucene [ In reply to ]
On Sun, Jan 7, 2024 at 7:10?AM Bob Kline <bkline@rksystems.com> wrote:

> I tried to sign up with ASF's JIRA system but got the message
>
> The project you have selected does not use Jira for issue tracking. Please
>> contact the project at dev@lucene.apache.org to find out where to submit
>> issues.
>
>
> I'm trying to build pylucene on Ubuntu but I'm getting an error message
> which is a little bit opaque.
> ....
>

I figured out how to get past all the problems I ran into, and was finally
able to get the package built and installed. Afterwards I captured notes on
the process so if I (or a colleague) needs to do this again, we'll have a
head start. I'm sharing these notes (attached) in case any of the
information might suggest improvements to the instructions page
<https://lucene.apache.org/pylucene/install.html>. Feel free to use or
ignore any of these notes as you think appropriate.

--
Bob Kline
https://www.rksystems.com
mailto:bkline@rksystems.com
Re: Where to report issues with lucene/pylucene [ In reply to ]
On Jan 7, 2024, at 15:57, Bob Kline <bkline@rksystems.com> wrote:

?I tried to sign up with ASF's JIRA system but got the message
The project you have selected does not use Jira for issue tracking. Please contact the project at dev@lucene.apache.org to find out where to submit issues.

https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-28?filter=allopenissues"]https://issues.apache.org/jira/projects/PYLUCENE
I'm trying to build pylucene on Ubuntu but I'm getting an error message which is a little bit opaque.
jar lucene-java-9.7.0/lucene/core/build/runtimeJars/lucene-core-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/analysis/common/build/runtimeJars/lucene-analysis-common-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/backward-codecs/build/runtimeJars/lucene-backward-codecs-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/classification/build/runtimeJars/lucene-classification-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/codecs/build/runtimeJars/lucene-codecs-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/expressions/build/runtimeJars/lucene-expressions-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/extensions/build/runtimeJars/lucene-extensions-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/facet/build/runtimeJars/lucene-facet-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/grouping/build/runtimeJars/lucene-grouping-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/highlighter/build/runtimeJars/lucene-highlighter-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/join/build/runtimeJars/lucene-join-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/analysis/kuromoji/build/runtimeJars/lucene-analysis-kuromoji-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/memory/build/runtimeJars/lucene-memory-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/misc/build/runtimeJars/lucene-misc-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/monitor/build/runtimeJars/lucene-monitor-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/analysis/nori/build/runtimeJars/lucene-analysis-nori-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/queries/build/runtimeJars/lucene-queries-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/queryparser/build/runtimeJars/lucene-queryparser-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/sandbox/build/runtimeJars/lucene-sandbox-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/spatial3d/build/runtimeJars/lucene-spatial3d-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/analysis/stempel/build/runtimeJars/lucene-analysis-stempel-9.7.0-SNAPSHOT.jar --jar lucene-java-9.7.0/lucene/suggest/build/runtimeJars/lucene-suggest-9.7.0-SNAPSHOT.jar --use_full_names --include lucene-java-9.7.0/lucene/expressions/build/runtimeJars/antlr4-runtime-4.11.1.jar --include lucene-java-9.7.0/lucene/expressions/build/runtimeJars/asm-7.2.jar --include lucene-java-9.7.0/lucene/expressions/build/runtimeJars/asm-commons-7.2.jar --include lucene-java-9.7.0/lucene/facet/build/runtimeJars/hppc-0.9.1.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.function --package java.util.regex --package http://java.io"]java.io java.io.StringReader --package java.nio.file java.nio.file.Path java.nio.file.Files java.nio.file.Paths --package org.antlr.v4.runtime --package org.antlr.v4.runtime.atn --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.misc.store.WindowsDirectory --exclude org.apache.lucene.misc.store.NativePosixUtil --exclude 'module-info' --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 java.util.AbstractCollection 'size:()I' '-:-' --sequence java.util.AbstractList '-:-' 'get:(I)Ljava/lang/Object;' org.apache.lucene.index.IndexWriter:getReader org.apache.lucene.analysis.Tokenizer:input --version 9.7.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --files --build
Illegal option: l
Try `jar --help' for more information.


Where should I report issues for this project?

https://issues.apache.org/jira/projects/PYLUCENE/issues/PYLUCENE-28?filter=allopenissues"]https://issues.apache.org/jira/projects/PYLUCENEIf you have questions, just ask on pylucene-dev@lucene.apache.org.
Andi..

Thanks.
--
Bob Klinehttps://www.rksystems.com"]https://www.rksystems.commailto:bkline@rksystems.com
Re: Where to report issues with lucene/pylucene [ In reply to ]
On Sun, 7 Jan 2024, Bob Kline wrote:

> On Sun, Jan 7, 2024 at 7:10?AM Bob Kline <bkline@rksystems.com> wrote:
>
> I figured out how to get past all the problems I ran into, and was finally
> able to get the package built and installed. Afterwards I captured notes on
> the process so if I (or a colleague) needs to do this again, we'll have a
> head start. I'm sharing these notes (attached) in case any of the
> information might suggest improvements to the instructions page
> <https://lucene.apache.org/pylucene/install.html>. Feel free to use or
> ignore any of these notes as you think appropriate.

Thank you for your notes. Replies inline:

> Skip over the "For the Impatient Ones" section. Those steps won't work
> because the Makefile must be edited first.

Well, the steps said to edit setup.py and Makefile to match your environment
except that the markup on the site was bogus for those lines and these
instructions were not rendered :-(
I fixed that now: https://lucene.apache.org/pylucene/install.html

> The build will not be able to use the Ubuntu distro's jcc, because it's
> not built to support the --shared option.

I wasn't aware that Ubuntu has a prebuilt package for JCC now. If it is not
built with --shared then you can't use shared mode for PyLucene. If all you
need/want is build PyLucene and no other wrappers later around other JARs
for use in the same VM, then you can skip shared mode and drop --shared
from the JCC invocations.

> The makefile needs help finding the JDK libraries.

This shouldn't be necessary as JCC, when setup.py is edited as required,
will populate that information.

> sudo make test

I would stronly recommend using a python virtual environment (venv) so that
you don't pollute the system python with your work. This doesn't require
root nor later careful cleanup of the system python installation should
something go wrong. Yes, 20 years ago, when PyLucene/JCC were started, venv
wasn't as much of a thing but nowadays it's very good practice.

> All of the tests pass except one:

I wonder what version of PyICU you have installed. I just verified that
tests do all pass if you do _not_ have PyICU installed.

Andi..