1449: Incompatible with Pylucene 3.0.0

markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Aug. 5, 2010
1734
What version are you running?
1.0.5.1

What's the URL of the page containing the problem?
anytime you click the "search" button or try and update the search index

What steps will reproduce the problem?
1. search for anything
2. incremental/full update of index

What is the expected output? What do you see instead?

What operating system are you using? What browser?
gentoo linux 2.6.27-gentoo-r7

Please provide any additional information below.
Perhaps i have something misconfigured with python/PyLucene/etc?  I had to
update python to 2.6 when installing django-1.1.1, which meant downloading
and compiling the latest PyLucene (& jcc).

Error message in logfile when i click "search":

2010-01-04 18:39:30,507 - ERROR - Exception thrown for user root at
http://server/r/search/?q=core

type object 'FSDirectory' has no attribute 'getDirectory'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py",
line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File
"/usr/lib/python2.6/site-packages/ReviewBoard-1.0.5.1-py2.6.egg/reviewboard/reviews/views.py",
line 727, in search
    store = lucene.FSDirectory.getDirectory(index_file, False)
AttributeError: type object 'FSDirectory' has no attribute 'getDirectory'

Error message when i try to update the index:

rb-site manage /var/www/localhost/servername/ index -- --full
Traceback (most recent call last):
  File "/usr/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==1.0.5.1', 'console_scripts', 'rb-site')()
  File
"/usr/lib/python2.6/site-packages/ReviewBoard-1.0.5.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 1478, in main
    command.run()
  File
"/usr/lib/python2.6/site-packages/ReviewBoard-1.0.5.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 1412, in run
    site.run_manage_command(args[0], args[1:])
  File
"/usr/lib/python2.6/site-packages/ReviewBoard-1.0.5.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
line 352, in run_manage_command
    execute_manager(reviewboard.settings, [__file__, cmd] + params)
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
362, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 222, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.6/site-packages/django/core/management/base.py",
line 351, in handle
    return self.handle_noargs(**options)
  File
"/usr/lib/python2.6/site-packages/ReviewBoard-1.0.5.1-py2.6.egg/reviewboard/reviews/management/commands/index.py",
line 68, in handle_noargs
    store = lucene.FSDirectory.getDirectory(store_dir, False)
AttributeError: type object 'FSDirectory' has no attribute 'getDirectory'
chipx86
#1 chipx86
It sounds like an unsupported version of PyLucene is installed. What version are you
running?
  • +NeedInfo
#2 markb*****@gmai***** (Google Code) (Is this you? Claim this profile.)
What version is the latest supported that i should be running?

VERSION=3.0.0-1
LUCENE_SVN_VER=HEAD
LUCENE_VER=3.0.0
LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/java/tags/lucene_3_0_0
#3 lon***@gmai***** (Google Code) (Is this you? Claim this profile.)
see http://reviews.reviewboard.org/r/1344/   PyLucene introduced backward
incompatible changes :(
david
#4 david
  • -NeedInfo
    +Confirmed
  • +Incompatible with Pylucene 3.0.0
#5 latc****@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm seeing this too.
chipx86
#6 chipx86
We need to fix this for 1.5.
  • -Priority-Medium
    +Priority-Critical
    +Milestone-Release1.5
    +Component-Search
david
#8 david
Fixed in 7adf5b3.
  • -Confirmed
    +Fixed