lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marco turchi <marco.tur...@gmail.com>
Subject Re: Installing PyLucene
Date Tue, 03 Jan 2017 15:05:35 GMT
Hi
I have also run the following commands to check if I'm using the shared
option of jcc:

>>> from jcc import config
>>> config.SHARED
True


Best,
Marco

On Tue, Jan 3, 2017 at 4:01 PM, marco turchi <marco.turchi@gmail.com> wrote:

> Dear Andi,
> following you suggestions, I have first installed pyLucene on a machine
> with access to the Web and than I have copied the tree on the cluster
> machine where I have installed pyLucene.
>
> Running the make test I have the following errors:
> ERROR: testThroughLayerException (__main__.PythonExceptionTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test/test_PythonException.py", line 34, in
> testThroughLayerException
>     qp.parse("foo bar")
> JavaError: <super: <class 'JavaError'>, <JavaError object>>
>     Java stacktrace:
> java.lang.RuntimeException: TestException
> at org.apache.pylucene.queryparser.classic.PythonQueryParser.getFieldQuery_quoted(Native
> Method)
> at org.apache.pylucene.queryparser.classic.PythonQueryParser.getFieldQuery(Unknown
> Source
> at org.apache.lucene.queryparser.classic.QueryParser.MultiTerm(
> QueryParser.java:585)
> at org.apache.lucene.queryparser.classic.QueryParser.Query(
> QueryParser.java:198)
> at org.apache.lucene.queryparser.classic.QueryParser.
> TopLevelQuery(QueryParser.java:187)
> at org.apache.lucene.queryparser.classic.QueryParserBase.parse(
> QueryParserBase.java:111)
>
> and:
> NameError: global name 'WindowsError' is not defined
> in
> ERROR: test_FieldEnumeration (__main__.Test_PyLuceneWithFSStore)
> ERROR: test_removeDocuments (__main__.Test_PyLuceneWithFSStore)
> ERROR: test_searchDocuments (__main__.Test_PyLuceneWithFSStore)
> ...
>
>
> I have checked on the mailing list but I have not found solutions that
> work for me. I'm using:
> python 2.7.12 (I have also tried python 3.5.2 but I have problems to
> compile jcc)
> java jdk1.8.0_60
>
> do you have an idea of what it is not working?
>
> Thanks a lot in advance for your help!
> Marco
>
>
>
>
> On Sat, Dec 31, 2016 at 4:09 AM, Andi Vajda <vajda@apache.org> wrote:
>
>>
>> > On Dec 30, 2016, at 15:07, marco turchi <marco.turchi@gmail.com> wrote:
>> >
>> > Dear Andi,
>> > thanks a lot for you answers!
>> >
>> >
>> >> You do not need root privileges if you don't modify the system python.
>> One
>> >> way to achieve that is to setup a python virtualenv first and install
>> jcc
>> >> and pylucene into it instead of the system python.
>> >>
>> >>
>> > Do you mean to install a new version of python in one of my folders and
>> us
>> > it for installing JCC and pyLucene?
>>
>> No, I mean to setup a python virtualenv.
>>
>> Andi..
>>
>>
>> >
>> >
>> >>> I'm using a
>> >>> version of python (2.7.5) available in anaconda and our cluster is not
>> >>> connected to the WEB, so I cannot use setuptools.
>> >>
>> >> You can use setuptools without a web connection, why not ?
>> >>
>> >
>> > Sorry, you are right I thought that setuptools needs to be connected to
>> the
>> > Web to download the required libraries
>> >
>> >
>> >>
>> >>
>> >> Ah, here, to build Java Lucene, ivy is required and without a web
>> >> connection, it's going to be more difficult. You need to somehow make
>> sure
>> >> that all things ivy is going to download during the Lucene build (a one
>> >> time setup only) are already there when you build Lucene.
>> >> You could do this on an equivalent machine that has a web connection
>> and
>> >> then copy the local ivy tree to the machine that doesn't.
>> >>
>> >
>> > This is a great suggestion, thanks a lot! I'm going to try this in the
>> next
>> > days!!
>> >
>> > Best,
>> > Marco
>> >
>> >
>> >>
>> >> Andi..
>> >>
>> >>>
>> >>> resolve:
>> >>>
>> >>> Am I doing anything wrong? do you have any suggestions to help me to
>> >>> proceed with the installation?
>> >>>
>> >>> Thanks a lot in advance for your help!
>> >>>
>> >>> Best Regards,
>> >>> Marco
>> >>
>> >>
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message