Labels: Type-Defect Priority-Medium
New issue 3095 by drenna...@gmail.com: PyLucene 4.x is not supported
*** READ THIS BEFORE POSTING!
*** You must complete this form in its entirety, or your bug report will be
*** For customer support, please post to reviewbo...@googlegroups.com
*** If you have a patch, please submit it to
*** Do not post confidential information in this bug report!
What version are you running?
What's the URL of the page containing the problem?
What steps will reproduce the problem?
1. Install PyLucene 4.x and attempt to search
What is the expected output? What do you see instead?
I expected to see search results. Instead I got a 500 error with the
following assertion in the logs..
2013-09-20 01:40:26,480 - ERROR - None - admin - /reviewboard/r/search/ -
Internal Server Error: /reviewboard/r/search/
Traceback (most recent call last):
line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
line 20, in _check
return login_required(view_func)(*args, **kwargs)
line 47, in _checklogin
return view_func(request, *args, **kwargs)
line 1394, in search
What operating system are you using? What browser?
Windows 7, Chrome
Please provide any additional information below.
The assertion comes from the PyLucene version check, which seems to enforce
using 2.x or 3.x
1377 import lucene
1378 lv = [int(x) for x in lucene.VERSION.split('.')]
1379 lucene_is_2x = lv == 2 and lv < 9
1380 lucene_is_3x = lv == 3 or (lv == 2 and lv == 9)
1382 # We may have already initialized lucene
1385 except ValueError:
1388 index_file = siteconfig.get("search_index_file")
1389 if lucene_is_2x:
1390 store = lucene.FSDirectory.getDirectory(index_file, False)
1391 elif lucene_is_3x:
1392 store = lucene.FSDirectory.open(lucene.File(index_file))
1394 assert False <--- HERE
The installation docs at
explicitly say to "download the latest version of PyLucene". So I guess
until 4.x is supported the docs should at least be updated. The admin UI
that lets you enable search should probably check for the required version
as well so the admin will know right away when they try to enable the
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.