[ome-users] [ome-devel] omero web problem with 4.4.10

Harri Jäälinoja harri.jaalinoja at helsinki.fi
Mon Feb 3 09:47:01 GMT 2014

Dear Ola,

> Could you send me an error you got with python 2.4 that force you to
> install 2.6?
> OMERO 4.4.10 should still be supported by 2.4.

I get an import error about "functools", which according to 
http://docs.python.org/2/library/functools.html is new in Python 2.5.

                                 ImportError at /

  No module named functools

   Request   GET
   Request   http://localhost:4080/
   Django    1.3.1
  Exception  ImportError
  Exception  No module named functools
  Location:  in ?, line 32
   Python    /usr/bin/python
   Python    2.4.3
   Python     '/usr/lib64/python2.4/plat-linux2',
    Path:     '/usr/lib64/python2.4/lib-tk',

The PYTHONPATH also includes '/usr/lib64/python2.6/site-packages' that 
is added along with the other environment variables, as shown in 

On the web development server console it shows this:

Quit the server with CONTROL-C.
Traceback (most recent call last):
   File "/usr/lib64/python2.4/logging/handlers.py", line 71, in emit
     if self.shouldRollover(record):
   File "/usr/lib64/python2.4/logging/handlers.py", line 149, in 
     msg = "%s\n" % self.format(record)
   File "/usr/lib64/python2.4/logging/__init__.py", line 617, in format
     return fmt.format(record)
   File "/usr/lib64/python2.4/logging/__init__.py", line 408, in format
     s = self._fmt % record.__dict__
KeyError: 'funcName'

> I think you can't just replace path. Doesn't yum sort that out?
> yum install python26 python26-devel
> If you run python console which version do you see?
[omero at lmu-omero2 ~]$ python
Python 2.4.3 (#1, Oct 23 2012, 22:02:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[omero at lmu-omero2 ~]$ python26
Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

This discussion is about the same problem:


It seems I should leave python 2.4 as it is, and install 2.6 in parallel 
like it is now. And somewhere in the OMERO startup scripts I should 
replace "python" with "python26". Where could I do that?

> All our omero resources run on CentOS. If you have any specific questions
> please just let us know.
Ok, this is good to hear. We can probably save the trouble of switching 
to Ubuntu, once we sort out the Python issue.


Harri Jäälinoja
Light Microscopy Unit
Institute of Biotechnology, University of Helsinki
+358 9 191 59370 fax +358 9 191 59366

More information about the ome-users mailing list