Re: Installing PyLucene

2016-12-30 Thread Andi Vajda

> On Dec 30, 2016, at 15:07, marco turchi  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
>> 
>> 


Re: Installing PyLucene

2016-12-30 Thread marco turchi
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?


> > 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
>
>


Re: Installing PyLucene

2016-12-30 Thread Andi Vajda

> On Dec 30, 2016, at 08:47, marco turchi  wrote:
> 
> Dear All,
> I'm newer with PyLucene and I'm trying to instal it on my local home on a
> cluster. In this environment, I do not have root privilege,

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.

> 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 ?

> I have followed the instructions for JCC and I have used:
> python setup.py build
> python setup.py install --users
> 
> and JCC is installed in $home/.local
> 
> Then I have started to install pyLucene, I have changed the Makefile (using
> the Linux (Debian Jessie 64-bit, Python 2.7.9, Oracle Java 1.8)
> configuration). The installation starts but it got stacked (for ages) here:
> ivy-configure:
> 
> [ivy:configure] :: loading settings :: file =
> /hltsrv0/turchi/Projects/QT21/WorkingFolder/NMT/software/pylucene-6.2.0/lucene-java-6.2.0/lucene/top-level-ivy-settings.xml

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.

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



PyLucene Subscribe

2016-12-30 Thread marco turchi
Hi
I'm new in pylucene and I'd like to subscribe to the mailing list to post
some question about the installation.

Best Regards,
Marco


Installing PyLucene

2016-12-30 Thread marco turchi
Dear All,
I'm newer with PyLucene and I'm trying to instal it on my local home on a
cluster. In this environment, I do not have root privilege, 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.

I have followed the instructions for JCC and I have used:
python setup.py build
python setup.py install --users

and JCC is installed in $home/.local

Then I have started to install pyLucene, I have changed the Makefile (using
the Linux (Debian Jessie 64-bit, Python 2.7.9, Oracle Java 1.8)
configuration). The installation starts but it got stacked (for ages) here:
ivy-configure:

[ivy:configure] :: loading settings :: file =
/hltsrv0/turchi/Projects/QT21/WorkingFolder/NMT/software/pylucene-6.2.0/lucene-java-6.2.0/lucene/top-level-ivy-settings.xml

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