daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Running manage.py index causes Exception #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Whenever I run python manage.py index I get the following error.  I've set up 
my DJAPIAN_DATABASE_PATH.  Also, when i try to search for a keyword the entire 
program stalls.

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File ".../lib/python2.5/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File ".../lib/python2.5/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ".../lib/python2.5/site-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ".../lib/python2.5/site-packages/django/core/management/base.py", line 218, in execute
    output = self.handle(*args, **options)
  File ".../lib/python2.5/site-packages/djapian/management/commands/index.py", line 166, in handle
    update_changes(verbose, timeout, not make_daemon, per_page, commit_each)
  File ".../lib/python2.5/site-packages/django/db/transaction.py", line 338, in _commit_manually
    return func(*args, **kw)
  File ".../lib/python2.5/site-packages/djapian/management/commands/index.py", line 75, in update_changes
    commit_each
  File ".../lib/python2.5/site-packages/djapian/indexer.py", line 181, in update
    database = self._db.open(write=True)
  File ".../lib/python2.5/site-packages/djapian/database.py", line 20, in open
    xapian.DB_CREATE_OR_OPEN,
  File "/usr/lib/python2.5/site-packages/xapian.py", line 2804, in __init__
    _xapian.WritableDatabase_swiginit(self,_xapian.new_WritableDatabase(*args))
xapian.DatabaseOpeningError: No flint database found at path 
`.../djangobb_forum/post/djangobb_forum.index.postindexer'

Original issue reported on code.google.com by adammckerlie@gmail.com on 6 Jul 2010 at 8:51

GoogleCodeExporter commented 9 years ago
More information.  I'm using this with DjangoBB.

Also, in the shell I see, does this mean anything:
Installed spaces/models/indexers:
- 0: `global`
  - 0.0: `djangobb_forum.Post`
    - 0.0.0: `djangobb_forum.index.postindexer`

Original comment by adammckerlie@gmail.com on 6 Jul 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Try to use absolute path in DJAPIAN_DATABASE_PATH setting.

Original comment by daevaorn on 12 Jul 2010 at 6:13