Yes, I am using Python 2.4
I have the Python dependent libraries installed in several directories (some in $PYTHON_HOME, and some under other directories. The Python libraries and current $PYTHONPATH worked with OMERO.web before I upgraded to 4.3.0 (I was on version 4.2.2). I followed the upgrade instructions for upgrading 4.2.2 to 4.3.0)
I noticed that in 4.3.0, the $OMERO_HOME/lib/python/omeroweb/settings.py file there are new settings for omero.web.database_engine, omero.web.database_host, omero.web.database_name, omero.web.database_port , etc -- so I tried the following:
- Code: Select all
bin/omero config set omero.web.database_engine 'postgresql'
bin/omero web start
But got a similar error, but with PostgreSQL driver instead:
- Code: Select all
Starting OMERO.web... Traceback (most recent call last):
File "manage.py", line 43, in ?
execute_manager(settings)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/core/management/__init__.py", line 362, in exee_manager
utility.execute()
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/core/management/__init__.py", line 303, in exee
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/core/management/base.py", line 195, in run_frorgv
self.execute(*args, **options.__dict__)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/core/management/base.py", line 213, in execute
translation.activate('en-us')
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/translation/__init__.py", line 73, in acate
return real_activate(language)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/translation/__init__.py", line 43, in deed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/translation/trans_real.py", line 205, intivate
_active[currentThread()] = translation(language)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/translation/trans_real.py", line 194, inanslation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/translation/trans_real.py", line 180, inetch
app = import_module(appname)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/contrib/admin/__init__.py", line 1, in ?
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/contrib/admin/helpers.py", line 7, in ?
from django.contrib.admin.util import flatten_fieldsets
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/contrib/admin/util.py", line 2, in ?
from django.db import models
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/db/__init__.py", line 41, in ?
backend = load_backend(settings.DATABASE_ENGINE)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/db/__init__.py", line 17, in load_backend
return import_module('.base', 'django.db.backends.%s' % backend_name)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/apps/OMERO.server-Beta-4.3.0/lib/python/django/db/backends/postgresql/base.py", line 20, in ?
raise ImproperlyConfigured("Error loading psycopg module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg
I am confused -- since all works if I am using the OMERO.cli (command line). Python does not connect to PostgreSQL DB directly, but goes though Hibernate in the OMERO.server via Ice Grid. Not sure why we need to specify a omero.web.database_engine in the settings.py file in this version of OMERO.web .
Thanks,
Tina