Django Roker
unread,Dec 26, 2008, 7:55:10 AM12/26/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django search with Lucene
import lucene package in python shell its shows all method, but when
use the /usr/bin/python manage.py search_initialize_db command it
shows error below
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 340, in execute_manager
utility.execute()
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 249, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", line 67, in load_command_class
{}, {}, ['Command']), 'Command')()
File "/root/workspace/entrydb/django_project/lucene/management/
commands/search_initialize_db.py", line 7, in <module>
pylucene = getattr(__import__("%s.pylucene" % get_commands()
["search_initialize_db"], {}, {}, []), "pylucene")
File "/root/workspace/entrydb/django_project/lucene/pylucene.py",
line 6, in <module>
import constant
File "/root/workspace/entrydb/django_project/lucene/constant.py",
line 27, in <module>
lucene = import_lucene()
File "/root/workspace/entrydb/django_project/lucene/constant.py",
line 10, in import_lucene
if lucene.getVMEnv() is None :
AttributeError: 'module' object has no attribute 'getVMEnv'
Please let me know immediate
Advance thanks