[ome-users] OMERO 4.2 release and python version

Aleksandra Tarkowska aleksandrat at lifesci.dundee.ac.uk
Tue Aug 17 17:44:25 BST 2010


Hi Bernie

I suspect that means that omero_sti/var/lib/custom_settings.py is not  
in apache PYTHONPATH. It usually happes becuase of the permissions on  
the var or var/lib directory. You apache_user must be able to read/ 
write there.
Please try to increase the permission on var and var/lib.

Thanks
Ola

On 17 Aug 2010, at 17:06, Bernie Broughton wrote:

> 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
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users



More information about the ome-users mailing list