import error

2 views
Skip to first unread message

Django Roker

unread,
Dec 26, 2008, 7:55:10 AM12/26/08
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

Spike^ekipS

unread,
Dec 31, 2008, 4:06:22 AM12/31/08
to Django search with Lucene
which version of pylucene do you use? django lucene search shoud be
working with JCC version of pylucene. Check your pylucene version.

http://downloads.osafoundation.org/PyLucene/jcc/
Reply all
Reply to author
Forward
0 new messages