[ome-users] OMERO 4.2 release and python version

Bernie Broughton b.broughton at sussex.ac.uk
Tue Aug 17 17:06:21 BST 2010


Hi,

OMERO 4.2 installation instructions state a requirement for Python version 
from 2.5 or 2.6, and this is repeated in the guide for mod_python.

Previous versions have said that 2.4 was acceptable (although if you are 
using Python 2.4, you will need pysqlite). We built our 4.1.1 development 
server on Centos 5.4 (now Centos 5.5), stuck with Python 2.4 and added the 
imaging library, Matplot Lib and Numpy.

I've upgraded the server to 4.2 and everything works but we're having 
problems getting the mod_python production web running.

The home page for the server gives:

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, 
in HandlerDispatch
    result = object(req)

  File 
"/home/omero/omero_dist/lib/python/django/core/handlers/modpython.py", line 
228, in handler
    return ModPythonHandler()(req)

  File 
"/home/omero/omero_dist/lib/python/django/core/handlers/modpython.py", line 
191, in __call__
    self.load_middleware()

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/django/core/handlers/base.py", 
line 33, in load_middleware
    for middleware_path in settings.MIDDLEWARE_CLASSES:

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/django/utils/functional.py", 
line 269, in __getattr__
    self._setup()

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/django/conf/__init__.py", 
line 40, in _setup
    self._wrapped = Settings(settings_module)

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/django/conf/__init__.py", 
line 73, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/django/utils/importlib.py", 
line 35, in import_module
    __import__(name)

  File 
"/home/omero/OMERO.server-Beta-4.2.0/lib/python/omeroweb/settings.py", line 
44, in ?
    sys.exit(1)

SystemExit: 1

The upgrade page doesn't say you need to upgrade Python from 2.4 to a 
higher version but I wonder is this the case, and might this explain the 
problems. In any event would it be wise to upgrade Python anyway?

Bernie Broughton
IT Manager
Genome Damage and Stability Centre
University of Sussex
http://www.sussex.ac.uk/USIS/phone/details.php?id=19643



More information about the ome-users mailing list