> What version of PyLucene ?

Sorry I forgot to mention it -- the version of Pylucene is 6.5.0, it's
the newest one I was directed to by clicking "Download" on the website.
The version of Lucene is also 6.5.0, at least left this option as it
was in the Makefile.

Without using this "hack" Pylucene itself completely refused to build,
complaining that JCC was compiled without shared mode. I regret that I
lost the exact error message.

Sz. Rutkowski

W dniu śro, 22.08.2018 o godzinie 12∶07 -0700, użytkownik Andi Vajda
napisał:
> On Wed, 22 Aug 2018, Szymon Rutkowski wrote:
> 
> > I managed to build Pylucene on Fedora 28, though it required some
> > tinkering: 1) symlinking libpython3.6 as libpython3.6m.so (this was
> > already reported some time ago I believe) 2) adding a line 216 in
> > JCC's
> > setup.py:
> 
> What version of PyLucene ?
> 
> > with_modern_setuptools = True
> > 
> > This obviously circumvents the earlier check made by this script. I
> > checked and the line "from setuptools.command.build_ext import
> > sh_link_shared_object" in helpers3/linux.py fails. Although DNF
> > reports
> > my version of python3-setuptools as 39.2.0, and I built Pylucene
> > with
> > these workarounds and as of yet it works fine for me. Monkey
> > patching
> > done by setup.py seemed to work also when I did it manually from
> > REPL.
> > 
> > Just to be sure I ran "sudo make test" for Pylucene and this is one
> > place where it fails, I don't know whether this could be related:
> > 
> > /usr/bin/python3 test3/test_PythonException.py
> > E
> > ===================================================================
> > ===
> > ERROR: testThroughLayerException (__main__.PythonExceptionTestCase)
> > -----------------------------------------------------------------
> > -----
> > Traceback (most recent call last):
> >  File "test3/test_PythonException.py", line 34, in
> > testThroughLayerException
> >    qp.parse("foo bar")
> > lucene.JavaError: <unprintable JavaError object>
> 
> This failure often means you did not build JCC in 'shared' mode.
> 
> > -----------------------------------------------------------------
> > -----
> > Ran 1 test in 0.011s
> > 
> > FAILED (errors=1)
> > /usr/bin/python3 test3/test_PositionIncrement.py
> > ..
> > -----------------------------------------------------------------
> > -----
> > Ran 2 tests in 0.273s
> 
> This failure is unexpected but I can't tell you much more since I
> don't know 
> what version of PyLucene and Lucene you are using ?
> 
> Andi..
> 
> > 
> > Kind regards,
> > Szymon Rutkowski
> > 
> > 
> > 


Reply via email to